Click or drag to resize

InputActionEventType Enumeration

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public enum InputActionEventType
Members
  Member nameValueDescription
Update0 Event fires every time input is updated.
ButtonPressed1 Event fires every frame a button is pressed.
ButtonUnpressed2 Event fires every frame a button is not pressed.
ButtonJustPressed3 Event fires only on the first frame a button is pressed.
ButtonJustReleased4 Event fires only on the first frame a button is released.
ButtonDoublePressed5 Event fires when a button is double pressed and every frame that it is held afterwards. Accepts optional arguments: speed [float] If no arguments are passed, buttonDoublePressSpeed will be used.
ButtonJustDoublePressed6 Event fires only on the first frame a button is double pressed. Accepts optional arguments: speed [float] If no arguments are passed, buttonDoublePressSpeed will be used.
ButtonPressedForTime7 Event fires when a button has been pressed for a specific time period and every frame that it is held afterwards. Requires 1 argument: time [float] 1 argument is optional: expireIn [float]
ButtonJustPressedForTime8 Event fires only on the frame that a button has been pressed for a specific time period. Requires 1 argument: time [float]
ButtonPressedForTimeJustReleased9 Event fires only on the frame that a button that has been pressed for a specific time period is released. Requires 1 argument: time [float] 1 argument is optional: expireIn [float]
ButtonShortPressed10 Event fires when a button has been pressed for a specific time period and every frame that it is held afterwards. The button short press time and expiration are set in the Input Behavior assigned to the Action. For a custom duration, use ButtonPressedForTime instead.
ButtonJustShortPressed11 Event fires only on the frame that a button has been pressed for a specific time period. The button short press time and expiration are set in the Input Behavior assigned to the Action. For a custom duration, use ButtonJustPressedForTime instead.
ButtonShortPressJustReleased12 Event fires only on the frame that a button that has been pressed for a specific time period is released. The button short press time and expiration are set in the Input Behavior assigned to the Action. For a custom duration, use ButtonJustPressedForTimeAndReleased instead.
ButtonLongPressed13 Event fires when a button has been pressed for a specific time period and every frame that it is held afterwards. The button long press time and expiration are set in the Input Behavior assigned to the Action. For a custom duration, use ButtonPressedForTime instead.
ButtonJustLongPressed14 Event fires only on the frame that a button has been pressed for a specific time period. The button long press time and expiration are set in the Input Behavior assigned to the Action. For a custom duration, use ButtonJustPressedForTime instead.
ButtonLongPressJustReleased15 Event fires only on the frame that a button that has been pressed for a specific time period is released. The button long press time and expiration are set in the Input Behavior assigned to the Action. For a custom duration, use ButtonJustPressedForTimeAndReleased instead.
ButtonRepeating16 Event fires on the first frame that a button has been pressed, then again after delay of the specified length and repeating on a regular interval as specified until the button is released. The delay and repeat rate are set in the Input Behavior assigned to the Action.
NegativeButtonPressed17 Event fires every frame a button is pressed.
NegativeButtonUnpressed18 Event fires every frame a button is not pressed.
NegativeButtonJustPressed19 Event fires only on the first frame a button is pressed.
NegativeButtonJustReleased20 Event fires only on the first frame a button is released.
NegativeButtonDoublePressed21 Event fires when a button is double pressed and every frame that it is held afterwards. Accepts optional arguments: speed [float] If no arguments are passed, buttonDoublePressSpeed will be used.
NegativeButtonJustDoublePressed22 Event fires only on the first frame a button is double pressed. Accepts optional arguments: speed [float] If no arguments are passed, buttonDoublePressSpeed will be used.
NegativeButtonPressedForTime23 Event fires when a button has been pressed for a specific time period and every frame that it is held afterwards. Requires 1 argument: time [float] 1 argument is optional: expireIn [float]
NegativeButtonJustPressedForTime24 Event fires only on the frame that a button has been pressed for a specific time period. Requires 1 argument: time [float]
NegativeButtonPressedForTimeJustReleased25 Event fires only on the frame that a button that has been pressed for a specific time period is released. Requires 1 argument: time [float] 1 argument is optional: expireIn [float]
NegativeButtonShortPressed26 Event fires when a button has been pressed for a specific time period and every frame that it is held afterwards. The button short press time and expiration are set in the Input Behavior assigned to the Action. For a custom duration, use NegativeButtonPressedForTime instead.
NegativeButtonJustShortPressed27 Event fires only on the frame that a button has been pressed for a specific time period. The button short press time and expiration are set in the Input Behavior assigned to the Action. For a custom duration, use NegativeButtonJustPressedForTime instead.
NegativeButtonShortPressJustReleased28 Event fires only on the frame that a button that has been pressed for a specific time period is released. The button short press time and expiration are set in the Input Behavior assigned to the Action. For a custom duration, use NegativeButtonJustPressedForTimeAndReleased instead.
NegativeButtonLongPressed29 Event fires when a button has been pressed for a specific time period and every frame that it is held afterwards. The button long press time and expiration are set in the Input Behavior assigned to the Action. For a custom duration, use NegativeButtonPressedForTime instead.
NegativeButtonJustLongPressed30 Event fires only on the frame that a button has been pressed for a specific time period. The button long press time and expiration are set in the Input Behavior assigned to the Action. For a custom duration, use NegativeButtonJustPressedForTime instead.
NegativeButtonLongPressJustReleased31 Event fires only on the frame that a button that has been pressed for a specific time period is released. The button long press time and expiration are set in the Input Behavior assigned to the Action. For a custom duration, use NegativeButtonJustPressedForTimeAndReleased instead.
NegativeButtonRepeating32 Event fires on the first frame that a button has been pressed, then again after delay of the specified length and repeating on a regular interval as specified until the button is released. The delay and repeat rate are set in the Input Behavior assigned to the Action.
AxisActive33 Event fires every frame the axis value is non-zero.
AxisInactive34 Event fires every frame the axis value is zero.
AxisRawActive35 Event fires every frame the raw axis value is non-zero. This does not fire when the axis value is zero. If you need to know both when the axis value is non-zero and when it returns to zero, see AxisRawActiveOrJustInactive.
AxisRawInactive36 Event fires every frame the raw axis value is zero. This does not fire when the axis value is zero. If you need to know both when the axis value is non-zero and when it returns to zero, see AxisActiveOrJustInactive.
AxisActiveOrJustInactive37 Event fires every frame the axis value is non-zero and once more when the axis returns to zero.
AxisRawActiveOrJustInactive38 Event fires every frame the raw axis value is non-zero and once more when the axis returns to zero.
ButtonDoublePressJustReleased100 Event fires only on the first frame after a button is released after a double press. Accepts optional arguments: speed [float] If no arguments are passed, buttonDoublePressSpeed will be used.
ButtonSinglePressed101
ButtonJustSinglePressed102
ButtonSinglePressJustReleased103
NegativeButtonDoublePressJustReleased150 Event fires only on the first frame after a negative button is released after a double press. Accepts optional arguments: speed [float] If no arguments are passed, buttonDoublePressSpeed will be used.
NegativeButtonSinglePressed151
NegativeButtonJustSinglePressed152
NegativeButtonSinglePressJustReleased153
See Also