C# Class SGDE.Input.Touchscreen

A touchscreen input device.
Inheritance: InputComponent
显示文件 Open project: sgdc/sgdc-old

Public Methods

Method Description
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.

Private Methods

Method Description
Touchscreen ( InputManager manager ) : System

Method Details

GetCurrentState() public method

Get the current Mouse input state.
public GetCurrentState ( ) : TouchCollection
return TouchCollection

GetDiffLocationByID() public method

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.
return Microsoft.Xna.Framework.Input.Touch.TouchLocation

GetGesture() public method

Get's a gesture if one exists. IsGesturesAvalible
public GetGesture ( ) : GestureSample
return Microsoft.Xna.Framework.Input.Touch.GestureSample

GetLocationByID() public method

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.
return Microsoft.Xna.Framework.Input.Touch.TouchLocation

GetPastLocationByID() public method

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.
return Microsoft.Xna.Framework.Input.Touch.TouchLocation

GetPastState() public method

Get the past Mouse input state.
public GetPastState ( ) : TouchCollection
return TouchCollection

GetPastTouchLocations() public method

Get the past touch locations.
public GetPastTouchLocations ( ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation[]
return Microsoft.Xna.Framework.Input.Touch.TouchLocation[]

GetTouchLocations() public method

Get the current touch locations.
public GetTouchLocations ( ) : Microsoft.Xna.Framework.Input.Touch.TouchLocation[]
return Microsoft.Xna.Framework.Input.Touch.TouchLocation[]

GetTouchLocationsDIff() public method

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[]
return Microsoft.Xna.Framework.Input.Touch.TouchLocation[]