ReInput Class |
Namespace: Rewired
public static class ReInput
The ReInput type exposes the following members.
Name | Description | |
---|---|---|
configuration |
Gets an object that provides access to configuration-related data.
| |
controllers |
Gets an object that contains all controller-related members.
| |
isReady |
Is the input system ready?
| |
mapping |
Gets an object that contains all mapping-related members.
| |
players |
Gets an object that contains all player-related members.
| |
programVersion |
Gets the current Rewired version number as a string.
| |
time |
Gets an object that provides access to time-related data. This is mostly for time comparisons for button and axis active/inactive time measurement.
| |
touch |
Gets an object that contains all touch-related members.
| |
unityJoystickIdentificationRequired |
Does the current platform require manual joystick identification?
| |
userDataStore |
Gets the UserDataStore component attached to the Rewired Input Manager if any. Use to access data saving and loading.
| |
usingUnityInput |
Is Unity (fallback) input currently being used to drive input?
|
Name | Description | |
---|---|---|
Reset |
Completely clears and reinitializes the Input Manager.
This is equivalent to destroying the Rewired Input Manager and reinstantiating it.
The current input configuration (Joystick ids, controller assignments, modified Controller Maps) will be reset.
All stored references to Rewired objects (Player, Joystick, ReInput.ControllerHelper, etc.) will become invalid.
All event listeners will be cleared.
|
Name | Description | |
---|---|---|
ControllerConnectedEvent |
Event triggered when a controller is conected.
| |
ControllerDisconnectedEvent |
Event triggered after a controller is disconnected.
| |
ControllerPreDisconnectEvent |
Event triggered just before a controller is disconnected. You can use this event to save controller maps before the controller is removed.
| |
EditorRecompileEvent |
Event triggered when editor begins recompiling scripts.
| |
InitializedEvent |
Event triggered after Rewired initializes.
Event listeners are never cleared from this event when Rewired is shut down so
you can subscribe once and receive events every time Rewired initializes.
| |
InputSourceUpdateEvent |
Event triggered before all input sources are updated. Use this event to update the element values Custom Controllers.
| |
PreShutDownEvent |
Event triggered immediately before Rewired shuts down.
Rewired objects are still valid during this event.
| |
ShutDownEvent |
Event triggered after Rewired shuts down.
|