Click or drag to resize

ReInputConfigHelper Class

Provides access to time-related data. This is mostly for accurate unscaled time comparisons for button and axis times.
Inheritance Hierarchy
SystemObject
  CodeHelper
    RewiredReInputConfigHelper

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class ConfigHelper : CodeHelper

The ReInputConfigHelper type exposes the following members.

Properties
  NameDescription
Public propertyactivateActionButtonsOnNegativeValue
Determines how button values are calculated by Player Actions. If enabled, Actions with either a negative or positive Axis value will return True when queried with player.GetButton. If disabled, Actions with a negative Axis value will always return False when queried with player.GetButton, and must be queried with player.GetNegativeButton. This setting can be changed without resetting Rewired.
Public propertyalwaysUseUnityInput
Toggles the use of Unity input during runtime. Rewired will be completely reset if this value is changed. This is an alias for disableNativeInput.
Public propertyandroid_supportUnknownGamepads
Toggles the support of unknown gamepads on the Android platform during runtime. Rewired will be completely reset if this value is changed.
Public propertyassignJoysticksToPlayingPlayersOnly
Toggles even joystick auto-assignment to Players with isPlayer = True only during runtime. This setting can be changed without resetting Rewired.
Public propertyautoAssignJoysticks
Toggles joystick auto-assignment during runtime. This setting can be changed without resetting Rewired.
Public propertydefaultJoystickAxis2DDeadZoneType
Changes the default dead zone type for 2D joystick axes for recognized controllers. This setting can be changed without resetting Rewired.
Public propertydefaultJoystickAxis2DSensitivityType
Changes the default sensitivity type for 2D joystick axes for recognized controllers. This setting can be changed without resetting Rewired.
Public propertydeferControllerConnectedEventsOnStart
Defer controller connected events for controllers already connected when Rewired initializes until the Start event instead of during initialization. Normally, it's impossible to receive controller connection events at the start of runtime because Rewired initializes before any other script is able to subscribe to the controller connected event. Enabling this will defer the controller connected events until the Start event, allowing your scripts to subscribe to the controller connected event in Awake and still receive the event callback. If disabled, controller connection events for controllers already connected before runtime starts will be missed.
Public propertydisableNativeInput
Toggles the use of Unity input during runtime. Rewired will be completely reset if this value is changed.
Public propertydistributeJoysticksEvenly
Toggles even joystick auto-assignment distribution among Players during runtime. This setting can be changed without resetting Rewired.
Public propertyenhancedDeviceSupport
Toggles the use of enhanced device support during runtime. Rewired will be completely reset if this value is changed.
Public propertyforce4WayHats
Force all 8-way hats on recognized joysticks to be treated as 4-way hats. If enabled, the corner directions on all hats will activate the adjacent 2 cardinal direction buttons instead of the corner button. This is useful if you need joystick hats to behave like D-Pads instead of 8-way hats. This setting can be changed without resetting Rewired.
Public propertyignoreInputWhenAppNotInFocus
Ignores input if the application is not in focus This setting has no effect on some platforms. NOTE: Disabling this does not guarantee that input will be processed when the application is out of focus. Whether input is received by the application or not is dependent on A) the input device type B) the current platform C) the input source(s) being used. This setting can be changed without resetting Rewired.
Public propertyjoystickRefreshRate
The joystick refresh rate in frames per second. [0 - 2000] [0 = Default] Set this to a higher value if you need higher precision input timing at high frame rates such as for a music beat game. Higher values result in higher CPU usage. Note that setting this to a very high value when the game is running at a low frame rate will not result in higher precision input. This settings only applies to input sources that use a separate thread to poll for joystick input values (currently XInput and Direct Input). This setting does not apply to event-based input sources such as Raw Input. This setting can be changed without resetting Rewired.
Public propertylinuxStandalonePrimaryInputSource
Changes the primary input source in Linux Standalone during runtime. Rewired will be completely reset if this value is changed.
Public propertylogLevel
Determines the level of internal logging.
Public propertymaxJoysticksPerPlayer
Set the max number of joysticks assigned to each Player by joystick auto-assignment during runtime. This setting can be changed without resetting Rewired.
Public propertynativeKeyboardSupport
Toggles the use of native keyboard handling during runtime. Rewired will be completely reset if this value is changed.
Public propertynativeMouseSupport
Toggles the use of native mouse handling during runtime. Rewired will be completely reset if this value is changed.
Public propertyosxStandalonePrimaryInputSource
Changes the primary input source in OSX Standalone during runtime. Rewired will be completely reset if this value is changed.
Public propertyps4PrimaryInputSource
Changes the primary input source in PS4 during runtime. Rewired will be completely reset if this value is changed.
Public propertyreassignJoystickToPreviousOwnerOnReconnect
Toggles joystick auto-reassignment when re-connected to the last owning Player during runtime. This setting can be changed without resetting Rewired.
Public propertythrottleCalibrationMode
Determines how throttles on recognized controllers are calibrated. By default, throttles are calibrated for a range of 0 to +1. This is suitable for most flight and racing games. Some games may require a range of -1 to +1 such as space flight games where a negative value denotes a reverse thrust. Changing this setting will revert all throttle calibrations to the default values for the chosen calibration mode. This setting can be changed without resetting Rewired.
Public propertyupdateLoop
Changes the Update Loop setting during runtime. Rewired will be completely reset if this value is changed. This can be set to multiple values simultaneously. Note: Update is required. Update will be enabled even if you unset the Update flag.
Public propertyuseXInput
Toggles the use of XInput in Windows Standalone and Windows UWP during runtime. Rewired will be completely reset if this value is changed.
Public propertywebGLPrimaryInputSource
Changes the primary input source in WebGL during runtime. Rewired will be completely reset if this value is changed.
Public propertywindowsStandalonePrimaryInputSource
Changes the primary input source in Windows Standalone during runtime. Rewired will be completely reset if this value is changed.
Public propertywindowsUWPPrimaryInputSource
Changes the primary input source in Windows 10 Universal during runtime. Rewired will be completely reset if this value is changed.
Public propertywindowsUWPSupportHIDDevices
Toggles support for HID devices in Windows UWP. This includes older gamepads, gamepads made for Android, flight controllers, racing wheels, etc. In order to use this feature, you must add support for HID gamepads and joysticks to the app manifest file. Please see the Special Platform Support -> Windows 10 Universal documentation for details. Rewired will be completely reset if this value is changed.
Public propertyxboxOnePrimaryInputSource
Changes the primary input source in Xbox One during runtime. Rewired will be completely reset if this value is changed.
Top
See Also