Humanoid Control for Unity v4
Public Types | Public Member Functions | Public Attributes | List of all members
Passer.Controller Class Reference

Description

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 More...
 

Public Attributes

ControllerSide left
 The left side of the controller
 
ControllerSide right
 The right side of the controller
 

Member Function Documentation

◆ GetButton()

bool Passer.Controller.GetButton ( Side  side,
Button  buttonID 
)

Retrieve the pressed state of a button

Parameters
sideThe identification of the side of the controller
buttonIDThe identification of the requested button

The documentation for this class was generated from the following file: