#define CE_EXPLICIT(EXPR)
Definition Macros.hpp:413
Definition Application.hpp:19
ModifierButton
A enumeration of possible modifier buttons.
Definition Input.hpp:298
@ None
A special modifier button constant that only returns true if no modifier key is pressed.
Button
A enumeration of known buttons.
Definition Input.hpp:25
MouseEventType
A enumeration that defines the type of mouse events.
Definition InputEvent.hpp:80
@ Scroll
The mouse event represents a mouse scroll wheel.
@ Move
The mouse event represents a mouse movement.
@ Drag
The mouse event represents a mouse drag.
KeyEventType
A enumeration that defines the type of key events.
Definition InputEvent.hpp:46
InputEventType
A structure that describes the type of an event.
Definition InputEvent.hpp:24
@ Key
The event is of type KeyEvent.
@ Text
The event is of type TextEvent.
@ Mouse
The event is of type MouseEvent.
std::uint32_t UInt32
Definition DataTypes.hpp:23
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
A structure that describes a key press event.
Definition InputEvent.hpp:55
KeyEventType type
The type of key event represented by the event structure.
Definition InputEvent.hpp:61
bool isRepeat
If set, indicates that the key is a repeat of a previous press.
Definition InputEvent.hpp:70
UInt32 scanCode
The system-specific scancode of the key.
Definition InputEvent.hpp:76
Button button
The button that has triggered the event.
Definition InputEvent.hpp:64
UInt32 repeatCount
Defines the number of times the key press is repeating.
Definition InputEvent.hpp:73
ModifierButton modifiers
The set of modifier keys pressed alongside this button.
Definition InputEvent.hpp:67
static constexpr InputEventType structType
A value that determines the type of event represented by this event struct.
Definition InputEvent.hpp:58
A structure that describes a mouse event.
Definition InputEvent.hpp:98
ModifierButton modifiers
The set of modifier keys pressed alongside this mouse button.
Definition InputEvent.hpp:110
Vector2 delta
TODO: Write docs.
Definition InputEvent.hpp:116
static constexpr InputEventType structType
A value that determines the type of event represented by this event struct.
Definition InputEvent.hpp:101
Vector2 position
The position the mouse cursor was when the even got triggered.
Definition InputEvent.hpp:113
Button button
The mouse button that has triggered the event.
Definition InputEvent.hpp:107
Vector2 scrollAmount
If the event sub-type is of type scroll this field contains the amount the scroll wheel has moved.
Definition InputEvent.hpp:120
MouseEventType type
The type of mouse event represented by the event structure.
Definition InputEvent.hpp:104
A structure that describes a text input event.
Definition InputEvent.hpp:124
static constexpr InputEventType structType
A value that determines the type of event represented by this event struct.
Definition InputEvent.hpp:127
String characters
The characters associated with a key-up or key-down event.
Definition InputEvent.hpp:138