Class KeyRepeatEvent

Inheritance Relationships

Base Type

  • public Event

Class Documentation

class KeyRepeatEvent : public Event

Event fired while a key is held in the Repeat state.

Triggered after a key has been held down past its initial Pressed frame. The key automatically transitions from Pressed to Repeat after one frame, and this event continues to fire while the key is held. Contains the key identifier and active modifier flags.

See also

KeyPressedEvent - Fired when key is initially pressed

Public Functions

inline explicit KeyRepeatEvent(const Key key, const KeyModifierFlag modifiers)
inline Key get_key() const
inline KeyModifierFlag get_modifiers() const

Public Members

EVENT_CLASS_TYPE(KeyRepeat) EVENT_CLASS_CATEGORY(Input) private KeyModifierFlag active_modifiers