TouchPanelΒΆ
-
class
TouchPanel
: System.Object Allows retrieval of information from Touch Panel device.
-
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.
-
public TouchCollection
GetState
() Gets the current state of the touch panel.
Returns: T:Microsoft.Xna.Framework.Input.Touch.TouchCollection
-
public TouchPanelState
GetState
(GameWindow window) Parameters: - window (Microsoft.Xna.Framework.GameWindow) –
-
public TouchPanelCapabilities
GetCapabilities
()
-
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) –
-
public GestureSample
ReadGesture
() Returns the next available gesture on touch panel device.
Returns: T:Microsoft.Xna.Framework.Input.Touch.GestureSample
-
System.IntPtr