TouchLocation

struct TouchLocation : System.ValueType, System.IEquatable<TouchLocation>
readonly int Id
readonly Vector2 Position
readonly float Pressure
readonly TouchLocationState State
Vector2 get_PressPosition()
System.TimeSpan get_PressTimestamp()
System.TimeSpan get_Timestamp()
Vector2 get_Velocity()
TouchLocation AsMovedState()

Returns a copy of the touch with the state changed to moved.

Returns:The new touch location.
bool UpdateState(TouchLocation touchEvent)

Updates the touch location using the new event.

Parameters:
  • touchEvent (Microsoft.Xna.Framework.Input.Touch.TouchLocation) – The next event for this touch location.
bool Equals(System.Object obj)
Parameters:
  • obj (System.Object) –
bool Equals(TouchLocation other)
Parameters:
  • other (Microsoft.Xna.Framework.Input.Touch.TouchLocation) –
int GetHashCode()
string ToString()
bool TryGetPreviousLocation(ref TouchLocation aPreviousLocation)
Parameters:
  • (ref) aPreviousLocation (Microsoft.Xna.Framework.Input.Touch.TouchLocation) –
bool op_Inequality(TouchLocation value1, TouchLocation value2)
Parameters:
  • value1 (Microsoft.Xna.Framework.Input.Touch.TouchLocation) –
  • value2 (Microsoft.Xna.Framework.Input.Touch.TouchLocation) –
bool op_Equality(TouchLocation value1, TouchLocation value2)
Parameters:
  • value1 (Microsoft.Xna.Framework.Input.Touch.TouchLocation) –
  • value2 (Microsoft.Xna.Framework.Input.Touch.TouchLocation) –
void AgeState()