Click or drag to resize

ReInput Class

The main class for accessing all input-related information.
The main class for accessing all input-related information.
The main class for accessing all input-related information.
The main class for accessing all input-related information.
The main class for accessing all input-related information.
The main class for accessing all input-related information.
The main class for accessing all input-related information.
Inheritance Hierarchy
SystemObject
  RewiredReInput

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static class ReInput

The ReInput type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberconfiguration
Gets an object that provides access to configuration-related data.
Public propertyStatic membercontrollers
Gets an object that contains all controller-related members.
Public propertyStatic memberisReady
Is the input system ready?
Public propertyStatic membermapping
Gets an object that contains all mapping-related members.
Public propertyStatic memberplayers
Gets an object that contains all player-related members.
Public propertyStatic memberprogramVersion
Gets the current Rewired version number as a string.
Public propertyStatic membertime
Gets an object that provides access to time-related data. This is mostly for time comparisons for button and axis active/inactive time measurement.
Public propertyStatic membertouch
Gets an object that contains all touch-related members.
Public propertyStatic memberunityJoystickIdentificationRequired
Does the current platform require manual joystick identification?
Public propertyStatic memberuserDataStore
Gets the UserDataStore component attached to the Rewired Input Manager if any. Use to access data saving and loading.
Public propertyStatic memberusingUnityInput
Is Unity (fallback) input currently being used to drive input?
Top
Methods
  NameDescription
Public methodStatic memberReset
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.
Top
Events
  NameDescription
Public eventStatic memberControllerConnectedEvent
Event triggered when a controller is conected.
Public eventStatic memberControllerDisconnectedEvent
Event triggered after a controller is disconnected.
Public eventStatic memberControllerPreDisconnectEvent
Event triggered just before a controller is disconnected. You can use this event to save controller maps before the controller is removed.
Public eventStatic memberEditorRecompileEvent
Event triggered when editor begins recompiling scripts.
Public eventStatic memberInitializedEvent
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.
Public eventStatic memberInputSourceUpdateEvent
Event triggered before all input sources are updated. Use this event to update the element values Custom Controllers.
Public eventStatic memberPreShutDownEvent
Event triggered immediately before Rewired shuts down. Rewired objects are still valid during this event.
Public eventStatic memberShutDownEvent
Event triggered after Rewired shuts down.
Top
See Also