TouchPanelStateΒΆ
-
class
TouchPanelState: System.Object -
System.IntPtr
WindowHandle The window handle of the touch panel. Purely for Xna compatibility.
-
int
DisplayHeight Gets or sets the display height of the touch panel.
-
DisplayOrientation
DisplayOrientation Gets or sets the display orientation of the touch panel.
-
int
DisplayWidth Gets or sets the display width of the touch panel.
-
GestureType
EnabledGestures Gets or sets enabled gestures.
-
bool
EnableMouseTouchPoint
-
bool
EnableMouseGestures
-
readonly bool
IsGestureAvailable Returns true if a touch gesture is available.
-
System.TimeSpan
get_CurrentTimestamp()
-
void
set_CurrentTimestamp(System.TimeSpan value) Parameters: - value (System.TimeSpan) –
-
public TouchPanelCapabilities
GetCapabilities() Returns capabilities of touch panel device.
Returns: T:Microsoft.Xna.Framework.Input.Touch.TouchPanelCapabilities
-
public TouchCollection
GetState()
-
void
AddEvent(int id, TouchLocationState state, Vector2 position) Parameters: - id (int) –
- state (Microsoft.Xna.Framework.Input.Touch.TouchLocationState) –
- position (Microsoft.Xna.Framework.Vector2) –
-
void
AddEvent(int id, TouchLocationState state, Vector2 position, bool isMouse) Parameters: - id (int) –
- state (Microsoft.Xna.Framework.Input.Touch.TouchLocationState) –
- position (Microsoft.Xna.Framework.Vector2) –
- isMouse (bool) –
-
void
ReleaseAllTouches() This will release all touch locations. It should only be called on platforms where touch state is reset all at once.
-
public GestureSample
ReadGesture() Returns the next available gesture on touch panel device.
Returns: T:Microsoft.Xna.Framework.Input.Touch.GestureSample
-
System.IntPtr