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 Sep 9, 2013
·
12 revisions
This page features all the enumerations and classes that exist in the XboxCtrlrInput namespace.
These are the enumerations that exist in the XboxCtrlrInput namespace.
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 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. |
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.