Click or drag to resize

ReInputControllerHelperGetUnityJoystickIdFromAnyButtonPress Method

Returns the 0 based id of the Unity joystick whose button was pressed. -1 if no button was pressed on any joystick. Use this to identify joysticks when using Unity's input system. This has no effect if Unity Input is not handling input on the current platform.

Namespace: Rewired
Assembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0+fd80194fe28f6b408ce098e98c53850d307c3a32
Syntax
C#
public int GetUnityJoystickIdFromAnyButtonPress()

Return Value

Int32
0-based index of the Unity joystick whose button was pressed
See Also