TouchLocation Constructor (Int32, TouchLocationState, Vector2, TouchLocationState, Vector2)
Initializes a new TouchLocation with an ID, and a set of both current and previous state, position, and pressure values.
Syntax
'Declaration
Public Sub New ( _
id As Integer, _
state As TouchLocationState, _
position As Vector2, _
previousState As TouchLocationState, _
previousPosition As Vector2 _
)
public TouchLocation (
int id,
TouchLocationState state,
Vector2 position,
TouchLocationState previousState,
Vector2 previousPosition
)
public:
TouchLocation(
int id,
TouchLocationState state,
Vector2 position,
TouchLocationState previousState,
Vector2 previousPosition
)
Parameters
- id
Type: Int32
ID of the new touch location. - state
Type: TouchLocationState
State of the new touch location. - position
Type: Vector2
Position, in screen coordinates, of the new touch location. - previousState
Type: TouchLocationState
Previous state for the new touch location. - previousPosition
Type: Vector2
Previous position for the new touch location.
Requirements
Namespace: Microsoft.Xna.Framework.Input.Touch
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
TouchLocation Structure
TouchLocation Members
Microsoft.Xna.Framework.Input.Touch Namespace
Platforms
Windows Phone