C# Class SGDE.Input.Keyboard

A keyboard input device.
Inheritance: InputComponent
Mostrar archivo Open project: sgdc/sgdc-old

Public Methods

Method 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

Method Description
Keyboard ( InputManager manager ) : System

Method Details

GetClickedKeys() public method

Get the currently clicked keys.
public GetClickedKeys ( ) : Keys[]
return Keys[]

GetCurrentState() public method

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

GetPastState() public method

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

GetPressedKeys() public method

Get the currently pressed keys.
public GetPressedKeys ( ) : Keys[]
return Keys[]

IsKeyClicked() public method

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.
return bool

IsKeyPressed() public method

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.
return bool