C# Class SGDE.Input.Keyboard

A keyboard input device.
Inheritance: InputComponent
Afficher le fichier Open project: sgdc/sgdc-old

Méthodes publiques

Méthode Description
GetClickedKeys ( ) : Keys[]

Get the currently clicked keys.

GetCurrentState ( ) : KeyboardState

Get the current keyboard input state.

GetPastState ( ) : KeyboardState

Get the past keyboard input state.

GetPressedKeys ( ) : Keys[]

Get the currently pressed keys.

IsKeyClicked ( Keys key ) : bool

Get if the specified key is clicked. This means that the key is down right now but wasn't always pressed down.

IsKeyPressed ( Keys key ) : bool

Get if the specified key is pressed. This means that the key is down right now.

Private Methods

Méthode Description
Keyboard ( InputManager manager ) : System

Method Details

GetClickedKeys() public méthode

Get the currently clicked keys.
public GetClickedKeys ( ) : Keys[]
Résultat Keys[]

GetCurrentState() public méthode

Get the current keyboard input state.
public GetCurrentState ( ) : KeyboardState
Résultat Microsoft.Xna.Framework.Input.KeyboardState

GetPastState() public méthode

Get the past keyboard input state.
public GetPastState ( ) : KeyboardState
Résultat Microsoft.Xna.Framework.Input.KeyboardState

GetPressedKeys() public méthode

Get the currently pressed keys.
public GetPressedKeys ( ) : Keys[]
Résultat Keys[]

IsKeyClicked() public méthode

Get if the specified key is clicked. This means that the key is down right now but wasn't always pressed down.
public IsKeyClicked ( Keys key ) : bool
key Keys The key to check if clicked.
Résultat bool

IsKeyPressed() public méthode

Get if the specified key is pressed. This means that the key is down right now.
public IsKeyPressed ( Keys key ) : bool
key Keys The key to check if pressed.
Résultat bool