ReInputConfigHelper Class |
Namespace: Rewired
public sealed class ConfigHelper : CodeHelper
The ReInputConfigHelper type exposes the following members.
Name | Description | |
---|---|---|
activateActionButtonsOnNegativeValue |
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.
| |
alwaysUseUnityInput |
Toggles the use of Unity input during runtime. Rewired will be completely reset if this value is changed.
This is an alias for disableNativeInput.
| |
android_supportUnknownGamepads |
Toggles the support of unknown gamepads on the Android platform during runtime. Rewired will be completely reset if this value is changed.
| |
assignJoysticksToPlayingPlayersOnly |
Toggles even joystick auto-assignment to Players with isPlayer = True only during runtime. This setting can be changed without resetting Rewired.
| |
autoAssignJoysticks |
Toggles joystick auto-assignment during runtime. This setting can be changed without resetting Rewired.
| |
defaultAbsoluteAxisPollingDeadZone |
The default polling dead zone used when polling Absolute coordinate mode axes.
In order for the axis to be detected when polling, the change in absolute value
of the axis over the polling period must be greater than this amount.
Do not set this value too low or noisy axes will be detected.
This only applies to axes that use an Absolute coordinate system such as joysticks.
Each indivisual axis may override this default value.
[Default = 0.7]
| |
defaultAxisSensitivityType |
Changes the default axis sensitivity type for axes. This setting can be changed without resetting Rewired.
Changing this setting will not change the AxisSensitivityType on Controllers already connected during the game session.
It will also not change the AxisSensitivityType in saved user data that is loaded.
| |
defaultJoystickAxis2DDeadZoneType |
Changes the default dead zone type for 2D joystick axes for recognized controllers. This setting can be changed without resetting Rewired.
| |
defaultJoystickAxis2DSensitivityType |
Changes the default sensitivity type for 2D joystick axes for recognized controllers. This setting can be changed without resetting Rewired.
| |
defaultRelativeAxisPollingDeadZone |
The default polling dead zone used when polling Relative coordinate mode axes.
In order for the axis to be detected when polling, the change in absolute value
of the axis over the polling period must be greater than this amount.
Do not set this value too low or noisy axes will be detected.
This only applies to axes that use a Relative coordinate system such as mouse axes.
Each indivisual axis may override this default value.
[Default = 100]
| |
deferControllerConnectedEventsOnStart |
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.
| |
disableNativeInput |
Toggles the use of Unity input during runtime. Rewired will be completely reset if this value is changed.
| |
distributeJoysticksEvenly |
Toggles even joystick auto-assignment distribution among Players during runtime. This setting can be changed without resetting Rewired.
| |
enhancedDeviceSupport |
Toggles the use of enhanced device support during runtime. Rewired will be completely reset if this value is changed.
| |
enhancedDeviceSupportExcludedDeviceTypes |
Gets or sets a copy of the list of all the device types excluded from Enhanced Device Support.
This will not return any values if the current platform does not support Enhanced Device Support.
Rewired will be completely reset if this value is set.
| |
force4WayHats |
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.
| |
generateKeyEventsOnKeyCombinationOverride |
Determines if key up and down events are generated when the Action(s) bound to one or more modifier keys that are part of
a key combination are overridden and resumed when the succeeding key(s) in the key combination are pressed or released.
Example: Cntl is bound to Action1. Cntl + W is bound to Action2. When Cntl is pressed, Action1 generates Down and On events.
When W is pressed while Cntl is held, should Action1, bound to Cntl, generate an Up event (because it has been overridden and is now off).
Similarly, when Cntl + W is held and W is released, if KeyCombinationOverrideMode is set to
Pause, should Action1, bound to Cntl, generate a Down event (because it is
no longer overridden and resumes returning True)?
This setting can be changed without resetting Rewired.
| |
ignoreInputWhenAppNotInFocus |
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.
| |
joystickRefreshRate |
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 Direct Input, XInput, and Windows Gaming Input). This setting does not apply to event-based input sources such as Raw Input.
This setting can be changed without resetting Rewired.
| |
keyCombinationOverrideMode |
Determines how Actions bound to keys that are also used in key combinations behave.
Example: Ctrl is bound to Action1 and Ctrl + W is bound to Action 2.
When Ctrl is pressed, Action1 activates until W is also pressed.
This defines how the underlying Action1 bound to Ctrl will behave when H is pressed
and when H is released. When Ctrl + H is pressed, the key combination overrides Action1
and it returns a value of False.
This setting can be changed without resetting Rewired.
| |
linuxStandalonePrimaryInputSource |
Changes the primary input source in Linux Standalone during runtime. Rewired will be completely reset if this value is changed.
| |
logLevel |
Determines the level of internal logging.
| |
maxJoysticksPerPlayer |
Set the max number of joysticks assigned to each Player by joystick auto-assignment during runtime. This setting can be changed without resetting Rewired.
| |
nativeKeyboardSupport |
Toggles the use of native keyboard handling during runtime. Rewired will be completely reset if this value is changed.
| |
nativeMouseSupport |
Toggles the use of native mouse handling during runtime. Rewired will be completely reset if this value is changed.
| |
osxStandalonePrimaryInputSource |
Changes the primary input source in OSX Standalone during runtime. Rewired will be completely reset if this value is changed.
| |
ps4PrimaryInputSource |
Changes the primary input source in PS4 during runtime. Rewired will be completely reset if this value is changed.
| |
reassignJoystickToPreviousOwnerOnReconnect |
Toggles joystick auto-reassignment when re-connected to the last owning Player during runtime. This setting can be changed without resetting Rewired.
| |
throttleCalibrationMode |
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.
| |
updateLoop |
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.
| |
updateMode |
Changes the Update Mode setting during runtime.
Rewired will be completely reset if this value is changed.
| |
useAppleGameControllerFramework | ||
useWindowsGamingInput |
Toggles the use of WindowsGamingInput in Windows Standalone and Windows UWP during runtime. Rewired will be completely reset if this value is changed.
| |
useXInput |
Toggles the use of XInput in Windows Standalone and Windows UWP during runtime. Rewired will be completely reset if this value is changed.
| |
webGLPrimaryInputSource |
Changes the primary input source in WebGL during runtime. Rewired will be completely reset if this value is changed.
| |
windowsStandalonePrimaryInputSource |
Changes the primary input source in Windows Standalone during runtime. Rewired will be completely reset if this value is changed.
| |
windowsUWPPrimaryInputSource |
Changes the primary input source in Windows 10 Universal during runtime. Rewired will be completely reset if this value is changed.
| |
windowsUWPSupportGamepads |
Use Windows.Gaming.Input.Gamepad for compatible devices.
Also enables special features for compatible devices such as vibration.
Rewired will be completely reset if this value is changed.
| |
windowsUWPSupportHIDDevices |
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.
| |
xboxOnePrimaryInputSource |
Changes the primary input source in Xbox One during runtime. Rewired will be completely reset if this value is changed.
|