unreal.InputTriggerRepeatedTap¶
- class unreal.InputTriggerRepeatedTap(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
InputTriggerTimedBaseFires the “Triggered” event upon a repeated taps of a key.
Note: You can use this trigger to easily make a “Double Tap” effect.
C++ Source:
Plugin: EnhancedInput
Module: EnhancedInput
File: InputTriggers.h
Editor Properties: (see get_editor_property/set_editor_property)
actuation_threshold(float): [Read-Write] Point at which this trigger firesaffected_by_time_dilation(bool): [Read-Write] Should global time dilation be applied to the held duration? Default is set to false.If this is set to true, then the owning Player Controller’s actor time dilation will be used when calculating the HeldDuration. see: UInputTriggerTimedBase::CalculateHeldDuration see: AWorldSettings::GetEffectiveTimeDilation
held_duration(float): [Read-Write] How long have we been actuating this trigger?last_value(InputActionValue): [Read-Write] Value passed to UpdateState on the previous tick. This will be updated automatically after the trigger is updated.number_of_taps_which_trigger_repeat(int32): [Read-Write] The number of taps in a row it takes for this to be considered triggered.Note: To create a “Double tap” trigger, this value should be 2.
repeat_delay(double): [Read-Write] The max amount of time which can pass in between single taps that can pass and still be considered a repeat tap. For example:-> Single Key Tap (the first tap) – – … Some time passes – -> Another single key tap (the second tap)
– if (time passed <= RepeatDelay) then trigger repeat tap
should_always_tick(bool): [Read-Write] Decides whether this trigger ticks every frame or not.This WILL affect performance and should only be used in specific custom triggers.
tap_release_time_threshold(float): [Read-Write] Release within this time-frame to trigger a tap
- property number_of_taps_which_trigger_repeat: int¶
[Read-Write] The number of taps in a row it takes for this to be considered triggered.
Note: To create a “Double tap” trigger, this value should be 2.
- Type:
(int32)
- property repeat_delay: float¶
[Read-Write] The max amount of time which can pass in between single taps that can pass and still be considered a repeat tap. For example:
-> Single Key Tap (the first tap) – – … Some time passes – -> Another single key tap (the second tap)
– if (time passed <= RepeatDelay) then trigger repeat tap
- Type:
(double)