Skip to content

Commit

Permalink
rename nativeTouchId
Browse files Browse the repository at this point in the history
  • Loading branch information
nkast committed Feb 17, 2025
1 parent 7560487 commit 2b3cd57
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Platforms/Input/.Android/Touch/ConcreteTouchPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public override GestureSample ReadGesture()
return base.ReadGesture();
}

public override void AddEvent(int id, TouchLocationState state, Vector2 position)
public override void AddEvent(int nativeTouchId, TouchLocationState state, Vector2 position)
{
IntPtr wndHandle = this.WindowHandle;
if (wndHandle != IntPtr.Zero)
Expand All @@ -94,7 +94,7 @@ public override void AddEvent(int id, TouchLocationState state, Vector2 position
Rectangle windowsBounds = gameWindow.ClientBounds;

Point winSize = new Point(windowsBounds.Width, windowsBounds.Height);
base.LegacyAddEvent(id, state, position, winSize);
base.LegacyAddEvent(nativeTouchId, state, position, winSize);
}
}

Expand Down
4 changes: 2 additions & 2 deletions Platforms/Input/.Blazor/Touch/ConcreteTouchPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public override GestureSample ReadGesture()
return base.ReadGesture();
}

public override void AddEvent(int id, TouchLocationState state, Vector2 position)
public override void AddEvent(int nativeTouchId, TouchLocationState state, Vector2 position)
{
IntPtr wndHandle = this.WindowHandle;
if (wndHandle != IntPtr.Zero)
Expand All @@ -80,7 +80,7 @@ public override void AddEvent(int id, TouchLocationState state, Vector2 position
Rectangle windowsBounds = gameWindow.ClientBounds;

Point winSize = new Point(windowsBounds.Width, windowsBounds.Height);
base.LegacyAddEvent(id, state, position, winSize);
base.LegacyAddEvent(nativeTouchId, state, position, winSize);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Platforms/Input/.Ref/Touch/ConcreteTouchPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public override GestureSample ReadGesture()
throw new PlatformNotSupportedException();
}

public override void AddEvent(int id, TouchLocationState state, Vector2 position)
public override void AddEvent(int nativeTouchId, TouchLocationState state, Vector2 position)
{
throw new PlatformNotSupportedException();
}
Expand Down
4 changes: 2 additions & 2 deletions Platforms/Input/.SDL2/Touch/ConcreteTouchPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public override GestureSample ReadGesture()
return base.ReadGesture();
}

public override void AddEvent(int id, TouchLocationState state, Vector2 position)
public override void AddEvent(int nativeTouchId, TouchLocationState state, Vector2 position)
{
IntPtr wndHandle = this.WindowHandle;
if (wndHandle != IntPtr.Zero)
Expand All @@ -79,7 +79,7 @@ public override void AddEvent(int id, TouchLocationState state, Vector2 position
Rectangle windowsBounds = gameWindow.ClientBounds;

Point winSize = new Point(windowsBounds.Width, windowsBounds.Height);
base.LegacyAddEvent(id, state, position, winSize);
base.LegacyAddEvent(nativeTouchId, state, position, winSize);
}
}

Expand Down
4 changes: 2 additions & 2 deletions Platforms/Input/.WindowsDX/Touch/ConcreteTouchPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public override GestureSample ReadGesture()
return base.ReadGesture();
}

public override void AddEvent(int id, TouchLocationState state, Vector2 position)
public override void AddEvent(int nativeTouchId, TouchLocationState state, Vector2 position)
{
IntPtr wndHandle = this.WindowHandle;
if (wndHandle != IntPtr.Zero)
Expand All @@ -84,7 +84,7 @@ public override void AddEvent(int id, TouchLocationState state, Vector2 position
Rectangle windowsBounds = gameWindow.ClientBounds;

Point winSize = new Point(windowsBounds.Width, windowsBounds.Height);
base.LegacyAddEvent(id, state, position, winSize);
base.LegacyAddEvent(nativeTouchId, state, position, winSize);
}
}

Expand Down
4 changes: 2 additions & 2 deletions Platforms/Input/.iOS/Touch/ConcreteTouchPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public override GestureSample ReadGesture()
return base.ReadGesture();
}

public override void AddEvent(int id, TouchLocationState state, Vector2 position)
public override void AddEvent(int nativeTouchId, TouchLocationState state, Vector2 position)
{
IntPtr wndHandle = this.WindowHandle;
if (wndHandle != IntPtr.Zero)
Expand All @@ -96,7 +96,7 @@ public override void AddEvent(int id, TouchLocationState state, Vector2 position
Rectangle windowsBounds = gameWindow.ClientBounds;

Point winSize = new Point(windowsBounds.Width, windowsBounds.Height);
base.LegacyAddEvent(id, state, position, winSize);
base.LegacyAddEvent(nativeTouchId, state, position, winSize);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Xna.Framework.Input/Input/Touch/TouchPanelStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public virtual GestureSample ReadGesture()
return this.LegacyReadGesture();
}

public abstract void AddEvent(int id, TouchLocationState state, Vector2 position);
public abstract void AddEvent(int nativeTouchId, TouchLocationState state, Vector2 position);

/// <summary>
/// This will invalidate the touch panel state.
Expand Down

0 comments on commit 2b3cd57

Please sign in to comment.