C# Class KeyboardPlayerInput, Albatross

Inheritance: PlayerInput
Mostrar archivo Open project: xby2/Albatross Class Usage Examples

Public Properties

Property Type Description
playerType KeyboardPlayerType

Public Methods

Method Description
KeyboardPlayerInput ( KeyboardPlayerType _playerType ) : System

Register the keyboard as player input

getActionHold ( ) : bool
getActionPressDown ( ) : bool
getHorizontalAxis ( ) : float
getName ( ) : string
getVerticalAxis ( ) : float

Method Details

KeyboardPlayerInput() public method

Register the keyboard as player input
public KeyboardPlayerInput ( KeyboardPlayerType _playerType ) : System
_playerType KeyboardPlayerType /// Which keyboard buttons to register WASD uses W, A, S, and D buttons. /// ARROW uses right, left, down, and up buttons ///
return System

getActionHold() public method

public getActionHold ( ) : bool
return bool

getActionPressDown() public method

public getActionPressDown ( ) : bool
return bool

getHorizontalAxis() public method

public getHorizontalAxis ( ) : float
return float

getName() public method

public getName ( ) : string
return string

getVerticalAxis() public method

public getVerticalAxis ( ) : float
return float

Property Details

playerType public_oe property

public KeyboardPlayerType playerType
return KeyboardPlayerType