Method | Description | |
---|---|---|
DEBUG_LogControllerNames ( ) : void |
DEBUG function. Log all controller names to Unity's console.
|
|
GetAxis ( XboxAxis axis ) : float |
Returns the analog number of the specified axis from any controller.
|
|
GetAxis ( XboxAxis axis, XboxController controller ) : float |
Returns the float number of the specified axis from a specified controller.
|
|
GetAxisRaw ( XboxAxis axis ) : float |
Returns the float number of the specified axis from any controller without Unity's smoothing filter.
|
|
GetAxisRaw ( XboxAxis axis, XboxController controller ) : float |
Returns the float number of the specified axis from a specified controller without Unity's smoothing filter.
|
|
GetButton ( XboxButton button ) : bool |
Returns
|
|
GetButton ( XboxButton button, XboxController controller ) : bool |
Returns
|
|
GetButtonDown ( XboxButton button ) : bool |
Returns
|
|
GetButtonDown ( XboxButton button, XboxController controller ) : bool |
Returns
|
|
GetButtonUp ( XboxButton button ) : bool |
Returns
|
|
GetButtonUp ( XboxButton button, XboxController controller ) : bool |
Returns
|
|
GetDPad ( XboxDPad padDirection ) : bool |
Returns
|
|
GetDPad ( XboxDPad padDirection, XboxController controller ) : bool |
Returns
|
|
GetDPadDown ( XboxDPad padDirection ) : bool |
Returns
|
|
GetDPadDown ( XboxDPad padDirection, XboxController controller ) : bool |
Returns
|
|
GetDPadUp ( XboxDPad padDirection ) : bool |
Returns
|
|
GetDPadUp ( XboxDPad padDirection, XboxController controller ) : bool |
Returns
|
|
GetNumPluggedCtrlrs ( ) : int |
Returns the number of Xbox controllers plugged to the computer.
|
|
IsPluggedIn ( int controllerNumber ) : bool |
Determines if the controller is plugged in the specified controllerNumber. CAUTION: Only works on Windows Native (Desktop and Editor, not Web)!
|
Method | Description | |
---|---|---|
AdjustAxisValues ( float axisValue, XboxAxis axis, int ctrlrNum ) : float | ||
DetermineAxisCode ( XboxAxis axs, int ctrlrNum ) : string | ||
DetermineButtonCode ( XboxButton btn, int ctrlrNum ) : string | ||
DetermineDPad ( XboxDPad padDir, int ctrlrNum ) : string | ||
DetermineDPadMac ( XboxDPad padDir, int ctrlrNum ) : string | ||
DetermineDPadWirelessLinux ( XboxDPad padDir, int ctrlrNum ) : string | ||
IsControllerNumberValid ( int ctrlrNum ) : bool | ||
IsControllerWireless ( ) : bool | ||
IsControllerWireless ( int ctrlNum ) : bool | ||
OnLinux ( ) : bool | ||
OnMac ( ) : bool | ||
OnWindows ( ) : bool | ||
OnWindowsNative ( ) : bool | ||
RefactorRange ( float oldRangeValue, int ctrlrNum, XboxAxis axis ) : float | ||
XInputApplyDeadzone ( float rawAxisValue, XboxAxis axis, XboxController controller ) : float | ||
XInputGetAxisState ( |
||
XInputGetAxisState ( |
||
XInputGetButtonState ( |
||
XInputGetDPadState ( |
||
XInputGetPaticularState ( int ctrlNum ) : |
||
XInputGetPaticularStatePrev ( int ctrlNum ) : |
||
XInputGetSingleState ( ) : |
||
XInputGetSingleStatePrev ( ) : |
||
XInputStillInCurrFrame ( ) : bool | ||
XInputUpdateAllStates ( ) : void |
public static DEBUG_LogControllerNames ( ) : void | ||
return | void |
public static GetAxis ( XboxAxis axis ) : float | ||
axis | XboxAxis | /// An identifier for the specified Xbox axis to be tested. /// |
return | float |
public static GetAxis ( XboxAxis axis, XboxController controller ) : float | ||
axis | XboxAxis | /// An identifier for the specified Xbox axis to be tested. /// |
controller | XboxController | /// An identifier for the specific controller on which to test the axis. /// |
return | float |
public static GetAxisRaw ( XboxAxis axis ) : float | ||
axis | XboxAxis | /// An identifier for the specified Xbox axis to be tested. /// |
return | float |
public static GetAxisRaw ( XboxAxis axis, XboxController controller ) : float | ||
axis | XboxAxis | /// An identifier for the specified Xbox axis to be tested. /// |
controller | XboxController | /// An identifier for the specific controller on which to test the axis. /// |
return | float |
public static GetButton ( XboxButton button ) : bool | ||
button | XboxButton | /// Identifier for the Xbox button to be tested. /// |
return | bool |
public static GetButton ( XboxButton button, XboxController controller ) : bool | ||
button | XboxButton | /// Identifier for the Xbox button to be tested. /// |
controller | XboxController | /// An identifier for the specific controller on which to test the button. /// |
return | bool |
public static GetButtonDown ( XboxButton button ) : bool | ||
button | XboxButton | /// Identifier for the Xbox button to be tested. /// |
return | bool |
public static GetButtonDown ( XboxButton button, XboxController controller ) : bool | ||
button | XboxButton | /// Identifier for the Xbox button to be tested. /// |
controller | XboxController | /// An identifier for the specific controller on which to test the button. /// |
return | bool |
public static GetButtonUp ( XboxButton button ) : bool | ||
button | XboxButton | /// Identifier for the Xbox button to be tested. /// |
return | bool |
public static GetButtonUp ( XboxButton button, XboxController controller ) : bool | ||
button | XboxButton | /// Identifier for the Xbox button to be tested. /// |
controller | XboxController | /// An identifier for the specific controller on which to test the button. /// |
return | bool |
public static GetDPad ( XboxDPad padDirection ) : bool | ||
padDirection | XboxDPad | /// An identifier for the specified D-Pad direction to be tested. /// |
return | bool |
public static GetDPad ( XboxDPad padDirection, XboxController controller ) : bool | ||
padDirection | XboxDPad | /// An identifier for the specified D-Pad direction to be tested. /// |
controller | XboxController | /// An identifier for the specific controller on which to test the D-Pad. /// |
return | bool |
public static GetDPadDown ( XboxDPad padDirection ) : bool | ||
padDirection | XboxDPad | |
return | bool |
public static GetDPadDown ( XboxDPad padDirection, XboxController controller ) : bool | ||
padDirection | XboxDPad | |
controller | XboxController | /// An identifier for the specific controller on which to test the button. /// |
return | bool |
public static GetDPadUp ( XboxDPad padDirection ) : bool | ||
padDirection | XboxDPad | |
return | bool |
public static GetDPadUp ( XboxDPad padDirection, XboxController controller ) : bool | ||
padDirection | XboxDPad | |
controller | XboxController | /// An identifier for the specific controller on which to test the button. /// |
return | bool |
public static IsPluggedIn ( int controllerNumber ) : bool | ||
controllerNumber | int | /// An identifier for the specific controller on which to test the axis. An int between 1 and 4. /// |
return | bool |