C# Класс SGDE.Input.Touchscreen

A touchscreen input device.
Наследование: InputComponent
Показать файл Открыть проект

Открытые методы

Метод Описание
GetCurrentState ( ) : TouchCollection

Get the current Mouse input state.

GetDiffLocationByID ( int id ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation

Get the difference between present and past touch locations for the specified ID. Only points that exist on both are returned. All fields (besides ID and Position) are ignored.

GetGesture ( ) : GestureSample

Get's a gesture if one exists. IsGesturesAvalible

GetLocationByID ( int id ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation

Get the current touch location for the specified ID.

GetPastLocationByID ( int id ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation

Get the past touch location for the specified ID.

GetPastState ( ) : TouchCollection

Get the past Mouse input state.

GetPastTouchLocations ( ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation[]

Get the past touch locations.

GetTouchLocations ( ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation[]

Get the current touch locations.

GetTouchLocationsDIff ( ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation[]

Get the difference between touch locations. This matches up TouchLocations by ID and returns the difference between them. Only points that exist on both are returned. All fields (besides ID and Position) are ignored.

Приватные методы

Метод Описание
Touchscreen ( InputManager manager ) : System

Описание методов

GetCurrentState() публичный Метод

Get the current Mouse input state.
public GetCurrentState ( ) : TouchCollection
Результат TouchCollection

GetDiffLocationByID() публичный Метод

Get the difference between present and past touch locations for the specified ID. Only points that exist on both are returned. All fields (besides ID and Position) are ignored.
public GetDiffLocationByID ( int id ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation
id int The ID of the touch locations to get the difference of.
Результат Microsoft.Xna.Framework.Input.Touch.TouchLocation

GetGesture() публичный Метод

Get's a gesture if one exists. IsGesturesAvalible
public GetGesture ( ) : GestureSample
Результат Microsoft.Xna.Framework.Input.Touch.GestureSample

GetLocationByID() публичный Метод

Get the current touch location for the specified ID.
public GetLocationByID ( int id ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation
id int The ID of the touch location.
Результат Microsoft.Xna.Framework.Input.Touch.TouchLocation

GetPastLocationByID() публичный Метод

Get the past touch location for the specified ID.
public GetPastLocationByID ( int id ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation
id int The ID of the past touch location.
Результат Microsoft.Xna.Framework.Input.Touch.TouchLocation

GetPastState() публичный Метод

Get the past Mouse input state.
public GetPastState ( ) : TouchCollection
Результат TouchCollection

GetPastTouchLocations() публичный Метод

Get the past touch locations.
public GetPastTouchLocations ( ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation[]
Результат Microsoft.Xna.Framework.Input.Touch.TouchLocation[]

GetTouchLocations() публичный Метод

Get the current touch locations.
public GetTouchLocations ( ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation[]
Результат Microsoft.Xna.Framework.Input.Touch.TouchLocation[]

GetTouchLocationsDIff() публичный Метод

Get the difference between touch locations. This matches up TouchLocations by ID and returns the difference between them. Only points that exist on both are returned. All fields (besides ID and Position) are ignored.
public GetTouchLocationsDIff ( ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation[]
Результат Microsoft.Xna.Framework.Input.Touch.TouchLocation[]