Antkeeper
0.0.1
|
Event generated when a keyboard key has been pressed. More...
#include <keyboard-events.hpp>
Public Attributes | |
keyboard * | keyboard {nullptr} |
Keyboard that generated the event. More... | |
scancode | scancode {0} |
Scancode of the key being pressed. More... | |
std::uint16_t | modifiers {0} |
Bit mask containing the active modifier keys. More... | |
bool | repeat {false} |
true if the key press was generated by a key repeat, false otherwise. More... | |
Event generated when a keyboard key has been pressed.
Definition at line 34 of file keyboard-events.hpp.
keyboard* input::key_pressed_event::keyboard {nullptr} |
Keyboard that generated the event.
Definition at line 37 of file keyboard-events.hpp.
std::uint16_t input::key_pressed_event::modifiers {0} |
Bit mask containing the active modifier keys.
Definition at line 43 of file keyboard-events.hpp.
bool input::key_pressed_event::repeat {false} |
true
if the key press was generated by a key repeat, false
otherwise.
Definition at line 46 of file keyboard-events.hpp.
scancode input::key_pressed_event::scancode {0} |
Scancode of the key being pressed.
Definition at line 40 of file keyboard-events.hpp.