Click or drag to resize

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:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void SetUnityJoystickId(
	int joystickId,
	int unityJoystickId
)

Parameters

joystickId
Type: SystemInt32
The id of the Joystick whose input source you are remapping.
unityJoystickId
Type: SystemInt32
The 0 based index of the Unity joystick which will become the Joystick's new input source.
See Also