Humanoid Control for Unity v4
|
Controller input for a single controller.
Public Types | |
enum | Side { Left , Right } |
Identification for the left or right side of the controller. | |
enum | Button { ButtonOne = 0 , ButtonTwo = 1 , ButtonThree = 2 , ButtonFour = 3 , Bumper = 10 , BumperTouch = 11 , Trigger = 12 , TriggerTouch = 13 , StickButton = 14 , StickTouch = 15 , Option = 30 , None = 9999 } |
Button identification values. | |
Public Member Functions | |
void | Update () |
Update the current values of the controller input. | |
Controller () | |
Constructor for access to the controller input. | |
void | Clear () |
Reset the values of all buttons. | |
void | EndFrame () |
Called at the end of the frame to indicate that new controller values can be read. | |
bool | GetButton (Side side, Button buttonID) |
Retrieve the pressed state of a button. | |
Public Attributes | |
ControllerSide | left |
The left side of the controller. | |
ControllerSide | right |
The right side of the controller. | |
Retrieve the pressed state of a button.
side | The identification of the side of the controller |
buttonID | The identification of the requested button |