|
Sparkle 0.0.1
|
Carries per-frame update timing and input state snapshot. More...
#include <spk_update_event.hpp>


Static Public Member Functions | |
| static UpdateEvent | create (const spk::Mouse *p_mouse, spk::Keyboard *p_keyboard) |
| Helper to build an update event from input devices. | |
Public Attributes | |
| Duration | deltaTime {} |
| Time elapsed since the previous frame. | |
| const spk::Mouse * | mouse = nullptr |
| Snapshot of the mouse state for the frame. | |
| const spk::Keyboard * | keyboard = nullptr |
| Snapshot of the keyboard state for the frame. | |
| Public Attributes inherited from spk::IEvent | |
| bool | isConsumed = false |
| Indicates whether the event has been handled. | |
| Timestamp | timestamp = spk::TimeUtils::getTime() |
| Timestamp when the event was created. | |
Carries per-frame update timing and input state snapshot.
|
static |
Helper to build an update event from input devices.