C# Class FarseerPhysics.Samples.ScreenSystem.InputHelper

Mostra file Open project: tinco/Farseer-Physics Class Usage Examples

Public Properties

Property Type Description
Cursor Microsoft.Xna.Framework.Vector2

Public Methods

Method Description
Draw ( ) : void
Draw ( SpriteBatch batch ) : void
InputHelper ( ) : FarseerPhysics.Samples.MediaSystem

Constructs a new input state.

InputHelper ( ScreenManager manager ) : System.Collections.Generic

Constructs a new input state.

IsMenuCancel ( ) : bool

Checks for a "menu cancel" input action.

IsMenuDown ( ) : bool
IsMenuHold ( ) : bool
IsMenuPressed ( ) : bool
IsMenuRelease ( ) : bool
IsMenuReleased ( ) : bool
IsMenuSelect ( ) : bool

Checks for a "menu select" input action.

IsMenuUp ( ) : bool
IsNewButtonPress ( Buttons button ) : bool

Helper for checking if a button was newly pressed during this update.

IsNewButtonRelease ( Buttons button ) : bool
IsNewKeyPress ( Keys key ) : bool

Helper for checking if a key was newly pressed during this update.

IsNewKeyRelease ( Keys key ) : bool
IsNewMouseButtonPress ( MouseButtons button ) : bool

Helper for checking if a mouse button was newly pressed during this update.

IsNewMouseButtonRelease ( MouseButtons button ) : bool

Checks if the requested mouse button is released.

IsNewScrollWheelDown ( ) : bool

Checks if the mouse wheel has been scrolled down

IsNewScrollWheelUp ( ) : bool

Checks if the mouse wheel has been scrolled up

IsScreenExit ( ) : bool
LoadContent ( ) : void
LoadContent ( Viewport viewport ) : void
Update ( GameTime gameTime ) : void

Reads the latest state of the keyboard and gamepad and mouse/touchpad.

Private Methods

Method Description
HandleVirtualStickWP7 ( ) : GamePadState
HandleVirtualStickWin ( ) : GamePadState

Method Details

Draw() public method

public Draw ( ) : void
return void

Draw() public method

public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

InputHelper() public method

Constructs a new input state.
public InputHelper ( ) : FarseerPhysics.Samples.MediaSystem
return FarseerPhysics.Samples.MediaSystem

InputHelper() public method

Constructs a new input state.
public InputHelper ( ScreenManager manager ) : System.Collections.Generic
manager ScreenManager
return System.Collections.Generic

IsMenuCancel() public method

Checks for a "menu cancel" input action.
public IsMenuCancel ( ) : bool
return bool

IsMenuDown() public method

public IsMenuDown ( ) : bool
return bool

IsMenuHold() public method

public IsMenuHold ( ) : bool
return bool

IsMenuPressed() public method

public IsMenuPressed ( ) : bool
return bool

IsMenuRelease() public method

public IsMenuRelease ( ) : bool
return bool

IsMenuReleased() public method

public IsMenuReleased ( ) : bool
return bool

IsMenuSelect() public method

Checks for a "menu select" input action.
public IsMenuSelect ( ) : bool
return bool

IsMenuUp() public method

public IsMenuUp ( ) : bool
return bool

IsNewButtonPress() public method

Helper for checking if a button was newly pressed during this update.
public IsNewButtonPress ( Buttons button ) : bool
button Buttons
return bool

IsNewButtonRelease() public method

public IsNewButtonRelease ( Buttons button ) : bool
button Buttons
return bool

IsNewKeyPress() public method

Helper for checking if a key was newly pressed during this update.
public IsNewKeyPress ( Keys key ) : bool
key Keys
return bool

IsNewKeyRelease() public method

public IsNewKeyRelease ( Keys key ) : bool
key Keys
return bool

IsNewMouseButtonPress() public method

Helper for checking if a mouse button was newly pressed during this update.
public IsNewMouseButtonPress ( MouseButtons button ) : bool
button MouseButtons
return bool

IsNewMouseButtonRelease() public method

Checks if the requested mouse button is released.
public IsNewMouseButtonRelease ( MouseButtons button ) : bool
button MouseButtons The button.
return bool

IsNewScrollWheelDown() public method

Checks if the mouse wheel has been scrolled down
public IsNewScrollWheelDown ( ) : bool
return bool

IsNewScrollWheelUp() public method

Checks if the mouse wheel has been scrolled up
public IsNewScrollWheelUp ( ) : bool
return bool

IsScreenExit() public method

public IsScreenExit ( ) : bool
return bool

LoadContent() public method

public LoadContent ( ) : void
return void

LoadContent() public method

public LoadContent ( Viewport viewport ) : void
viewport Microsoft.Xna.Framework.Graphics.Viewport
return void

Update() public method

Reads the latest state of the keyboard and gamepad and mouse/touchpad.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

Cursor public_oe property

public Vector2,Microsoft.Xna.Framework Cursor
return Microsoft.Xna.Framework.Vector2