Fired when input from the OS/hardware is received.
More...
#include <Events.hpp>
|
| | InputEvent ()=default |
| | Default constructor.
|
| |
| | InputEvent (int k, int a) |
| | Initializes an input event directly from OS callbacks.
|
| |
| virtual | ~Event ()=default |
| | Virtual destructor to ensure proper polymorphic cleanup.
|
| |
|
| int | key |
| | GLFW key code (e.g., GLFW_KEY_E)
|
| |
| int | action |
| | State of the key (INPUT_PRESS, INPUT_HOLD, or INPUT_RELEASE)
|
| |
Fired when input from the OS/hardware is received.
◆ InputEvent() [1/2]
| InputEvent::InputEvent |
( |
| ) |
|
|
default |
Default constructor.
- Parameters
-
- Return values
-
◆ InputEvent() [2/2]
| InputEvent::InputEvent |
( |
int |
k, |
|
|
int |
a |
|
) |
| |
|
inline |
Initializes an input event directly from OS callbacks.
- Parameters
-
| k | : GLFW key code |
| a | : State of the key |
- Return values
-
◆ action
State of the key (INPUT_PRESS, INPUT_HOLD, or INPUT_RELEASE)
◆ key
GLFW key code (e.g., GLFW_KEY_E)
The documentation for this struct was generated from the following file:
- /home/runner/work/Cheese-Engine/Cheese-Engine/inc/Events.hpp