Click or drag to resize

InputActionEventType Enumeration

Input action events. When using event based input, this is used to specify when to send an event.

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 ButtonPressedForTimeJustReleased 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 ButtonPressedForTimeJustReleased 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 NegativeButtonPressedForTimeJustReleased 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 NegativeButtonPressedForTimeJustReleased 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 Event fires every frame after a button is held and the double press timeout has expired. This will never fire if a double press occurs. This event is delayed because it only fires after the double press timeout has expired. Only use this event if you need to check for both a single press and a double press on the same Action. Otherwise, use ButtonPressed instead for instantaneous button press detection. The double press speed is set in the Input Behavior assigned to the Action.
ButtonJustSinglePressed102 Event fires on the first frame after a button press and after the double press timeout has expired.. This will never fire if a double press occurs. This event is delayed because it only fires after the double press timeout has expired. Only use this event if you need to check for both a single press and a double press on the same Action. Otherwise, use ButtonJustPressed instead for instantaneous button press detection. The double press speed is set in the Input Behavior assigned to the Action.
ButtonSinglePressJustReleased103 Event fires on the first frame after the release of a single press. This will never fire if a double press occurs. This event is delayed because it only fires after the double press timeout has expired. Only use this event if you need to check for both a single press and a double press on the same Action. Otherwise, use ButtonJustReleased instead for instantaneous button press detection. The double press speed is set in the Input Behavior assigned to the Action.
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 Event fires every frame after a negative button is held and the double press timeout has expired. This will never fire if a double press occurs. This event is delayed because it only fires after the double press timeout has expired. Only use this event if you need to check for both a single press and a double press on the same Action. Otherwise, use NegativeButtonPressed instead for instantaneous negative button press detection. The double press speed is set in the Input Behavior assigned to the Action.
NegativeButtonJustSinglePressed152 Event fires on the first frame after a negative button press and after the double press timeout has expired.. This will never fire if a double press occurs. This event is delayed because it only fires after the double press timeout has expired. Only use this event if you need to check for both a single press and a double press on the same Action. Otherwise, use NegativeButtonJustPressed instead for instantaneous negative button press detection. The double press speed is set in the Input Behavior assigned to the Action.
NegativeButtonSinglePressJustReleased153 Event fires on the first frame after the release of a single press. This will never fire if a double press occurs. This event is delayed because it only fires after the double press timeout has expired. Only use this event if you need to check for both a single press and a double press on the same Action. Otherwise, use NegativeButtonJustReleased instead for instantaneous negative button press detection. The double press speed is set in the Input Behavior assigned to the Action.
See Also