This repository was archived by the owner on Jan 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Coding Reference
Jibran Syed edited this page Nov 8, 2013
·
12 revisions
This page features all the enumerations and classes that exist in the XboxCtrlrInput namespace.
These enumerations exist in the XboxCtrlrInput namespace and are used to identify the different inputs of an Xbox 360 controller.
XboxButton |
Used to identify different Xbox buttons. |
|---|---|
XboxDPad |
Used to refer to the four D-Pad directions. |
XboxAxis |
Used to identify all of the Xbox's analog inputs. |
The XCI class is responsible for retrieving input from an Xbox 360 controller given a particular method and its parameters. The class contains the following:
There are none, as of yet anyway.
GetButton() |
Returns true if the specified button is held down. |
|---|---|
GetButtonDown() |
Returns true at the frame the specified button starts to press down (not held down). |
GetButtonUp() |
Returns true at the frame the specified button is released. |
GetDPad() |
Returns true if the specified D-Pad direction is pressed down. |
GetAxis() |
Returns the analog number of the specified axis. |
GetAxisRaw() |
Returns the analog number of the specified axis without Unity's smoothing filter. |
GetNumPluggedCtrlrs() |
Returns the number of Xbox controllers plugged to the computer. |
DEBUG_LogControllerNames() |
DEBUG function. Log all controller names to Unity's console. |
This is a map of all the inputs that XboxCtrlrInput intends on supporting. The purple labels are buttons, the orange labels are axis, and the cyan labels are the D-Pad directions.