TouchLocation Constructor (Int32, TouchLocationState, Vector2)
Initializes a new TouchLocation with an ID, state, position, and pressure.
Syntax
'Declaration
Public Sub New ( _
id As Integer, _
state As TouchLocationState, _
position As Vector2 _
)
public TouchLocation (
int id,
TouchLocationState state,
Vector2 position
)
public:
TouchLocation(
int id,
TouchLocationState state,
Vector2 position
)
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.
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