C# Класс FarseerPhysics.Samples.ScreenSystem.InputHelper

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Cursor Microsoft.Xna.Framework.Vector2

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

Метод Описание
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.

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

Метод Описание
HandleVirtualStickWP7 ( ) : GamePadState
HandleVirtualStickWin ( ) : GamePadState

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

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

public Draw ( ) : void
Результат void

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

public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

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

Constructs a new input state.
public InputHelper ( ) : FarseerPhysics.Samples.MediaSystem
Результат FarseerPhysics.Samples.MediaSystem

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

Constructs a new input state.
public InputHelper ( ScreenManager manager ) : System.Collections.Generic
manager ScreenManager
Результат System.Collections.Generic

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

Checks for a "menu cancel" input action.
public IsMenuCancel ( ) : bool
Результат bool

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

public IsMenuDown ( ) : bool
Результат bool

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

public IsMenuHold ( ) : bool
Результат bool

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

public IsMenuPressed ( ) : bool
Результат bool

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

public IsMenuRelease ( ) : bool
Результат bool

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

public IsMenuReleased ( ) : bool
Результат bool

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

Checks for a "menu select" input action.
public IsMenuSelect ( ) : bool
Результат bool

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

public IsMenuUp ( ) : bool
Результат bool

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

Helper for checking if a button was newly pressed during this update.
public IsNewButtonPress ( Buttons button ) : bool
button Buttons
Результат bool

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

public IsNewButtonRelease ( Buttons button ) : bool
button Buttons
Результат bool

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

Helper for checking if a key was newly pressed during this update.
public IsNewKeyPress ( Keys key ) : bool
key Keys
Результат bool

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

public IsNewKeyRelease ( Keys key ) : bool
key Keys
Результат bool

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

Helper for checking if a mouse button was newly pressed during this update.
public IsNewMouseButtonPress ( MouseButtons button ) : bool
button MouseButtons
Результат bool

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

Checks if the requested mouse button is released.
public IsNewMouseButtonRelease ( MouseButtons button ) : bool
button MouseButtons The button.
Результат bool

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

Checks if the mouse wheel has been scrolled down
public IsNewScrollWheelDown ( ) : bool
Результат bool

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

Checks if the mouse wheel has been scrolled up
public IsNewScrollWheelUp ( ) : bool
Результат bool

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

public IsScreenExit ( ) : bool
Результат bool

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

public LoadContent ( ) : void
Результат void

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

public LoadContent ( Viewport viewport ) : void
viewport Microsoft.Xna.Framework.Graphics.Viewport
Результат void

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

Reads the latest state of the keyboard and gamepad and mouse/touchpad.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

Описание свойств

Cursor публичное свойство

public Vector2,Microsoft.Xna.Framework Cursor
Результат Microsoft.Xna.Framework.Vector2