ReInputControllerHelperSetUnityJoystickId Method |
Sets a Unity joystick as the input source of a Joystick.
Use this to remap a joystick to its source when reconnected on platforms that use Unity Input.
This has no effect if Unity Input is not handling input on the current platform.
Namespace: RewiredAssembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic void SetUnityJoystickId(
int joystickId,
int unityJoystickId
)
Parameters
- joystickId Int32
- The id of the Joystick whose input source you are remapping.
- unityJoystickId Int32
- The 0 based index of the Unity joystick which will become the Joystick's new input source.
See Also