Antkeeper  0.0.1
Public Attributes | List of all members
input::key_pressed_event Struct Reference

Event generated when a keyboard key has been pressed. More...

#include <keyboard-events.hpp>

Public Attributes

keyboardkeyboard {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...
 

Detailed Description

Event generated when a keyboard key has been pressed.

Definition at line 34 of file keyboard-events.hpp.

Member Data Documentation

◆ keyboard

keyboard* input::key_pressed_event::keyboard {nullptr}

Keyboard that generated the event.

Definition at line 37 of file keyboard-events.hpp.

◆ modifiers

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.

◆ repeat

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

scancode input::key_pressed_event::scancode {0}

Scancode of the key being pressed.

Definition at line 40 of file keyboard-events.hpp.


The documentation for this struct was generated from the following file: