Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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