C# Class FarseerPhysics.Samples.ScreenSystem.InputHelper

Afficher le fichier Open project: tinco/Farseer-Physics Class Usage Examples

Méthodes publiques

Свойство Type Description
Cursor Microsoft.Xna.Framework.Vector2

Méthodes publiques

Méthode 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

Méthode Description
HandleVirtualStickWP7 ( ) : GamePadState
HandleVirtualStickWin ( ) : GamePadState

Method Details

Draw() public méthode

public Draw ( ) : void
Résultat void

Draw() public méthode

public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

InputHelper() public méthode

Constructs a new input state.
public InputHelper ( ) : FarseerPhysics.Samples.MediaSystem
Résultat FarseerPhysics.Samples.MediaSystem

InputHelper() public méthode

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

IsMenuCancel() public méthode

Checks for a "menu cancel" input action.
public IsMenuCancel ( ) : bool
Résultat bool

IsMenuDown() public méthode

public IsMenuDown ( ) : bool
Résultat bool

IsMenuHold() public méthode

public IsMenuHold ( ) : bool
Résultat bool

IsMenuPressed() public méthode

public IsMenuPressed ( ) : bool
Résultat bool

IsMenuRelease() public méthode

public IsMenuRelease ( ) : bool
Résultat bool

IsMenuReleased() public méthode

public IsMenuReleased ( ) : bool
Résultat bool

IsMenuSelect() public méthode

Checks for a "menu select" input action.
public IsMenuSelect ( ) : bool
Résultat bool

IsMenuUp() public méthode

public IsMenuUp ( ) : bool
Résultat bool

IsNewButtonPress() public méthode

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

IsNewButtonRelease() public méthode

public IsNewButtonRelease ( Buttons button ) : bool
button Buttons
Résultat bool

IsNewKeyPress() public méthode

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

IsNewKeyRelease() public méthode

public IsNewKeyRelease ( Keys key ) : bool
key Keys
Résultat bool

IsNewMouseButtonPress() public méthode

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

IsNewMouseButtonRelease() public méthode

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

IsNewScrollWheelDown() public méthode

Checks if the mouse wheel has been scrolled down
public IsNewScrollWheelDown ( ) : bool
Résultat bool

IsNewScrollWheelUp() public méthode

Checks if the mouse wheel has been scrolled up
public IsNewScrollWheelUp ( ) : bool
Résultat bool

IsScreenExit() public méthode

public IsScreenExit ( ) : bool
Résultat bool

LoadContent() public méthode

public LoadContent ( ) : void
Résultat void

LoadContent() public méthode

public LoadContent ( Viewport viewport ) : void
viewport Microsoft.Xna.Framework.Graphics.Viewport
Résultat void

Update() public méthode

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

Property Details

Cursor public_oe property

public Vector2,Microsoft.Xna.Framework Cursor
Résultat Microsoft.Xna.Framework.Vector2