C# Class Drought.Input.DeviceInput

Exibir arquivo Open project: kiniry-teaching/UCD Class Usage Examples

Public Methods

Method Description
bind ( GameKeys gameKey, Keys key, ModifierKeys modifier ) : void
bind ( GameKeys gameKey, MouseButtons button, ModifierKeys modifier ) : void
clearBinding ( GameKeys gameKey ) : void
clearBindings ( ) : void
getInput ( ) : DeviceInput
getMouseX ( ) : int
getMouseY ( ) : int
isKeyPressed ( GameKeys gameKey ) : bool
poll ( ) : void
wasKeyJustPressed ( GameKeys gameKey ) : bool
wasKeyJustReleased ( GameKeys gameKey ) : bool

Private Methods

Method Description
DeviceInput ( ) : System
isMouseButtonPressed ( MouseButtons button ) : bool

Method Details

bind() public method

public bind ( GameKeys gameKey, Keys key, ModifierKeys modifier ) : void
gameKey GameKeys
key Keys
modifier ModifierKeys
return void

bind() public method

public bind ( GameKeys gameKey, MouseButtons button, ModifierKeys modifier ) : void
gameKey GameKeys
button MouseButtons
modifier ModifierKeys
return void

clearBinding() public method

public clearBinding ( GameKeys gameKey ) : void
gameKey GameKeys
return void

clearBindings() public method

public clearBindings ( ) : void
return void

getInput() public static method

public static getInput ( ) : DeviceInput
return DeviceInput

getMouseX() public method

public getMouseX ( ) : int
return int

getMouseY() public method

public getMouseY ( ) : int
return int

isKeyPressed() public method

public isKeyPressed ( GameKeys gameKey ) : bool
gameKey GameKeys
return bool

poll() public method

public poll ( ) : void
return void

wasKeyJustPressed() public method

public wasKeyJustPressed ( GameKeys gameKey ) : bool
gameKey GameKeys
return bool

wasKeyJustReleased() public method

public wasKeyJustReleased ( GameKeys gameKey ) : bool
gameKey GameKeys
return bool