Toast Engine
Loading...
Searching...
No Matches
event::WindowKey Struct Reference

Event sent when user presses a key. More...

#include <window_events.hpp>

Inheritance diagram for event::WindowKey:
Collaboration diagram for event::WindowKey:

Public Member Functions

 WindowKey (int key, int scancode, int action, int mods)

Public Attributes

int key
 SDL key code.
int scancode
 SDL scancode.
int action
 0 released, 1 pressed, 2 repeated
int mods
 Modifier flags.
Public Attributes inherited from event::Event< WindowKey >
friend T

Additional Inherited Members

Public Types inherited from event::Event< WindowKey >
using callback_t
 callbacks that return 'true' are consumed and do not propogate
using iterator_t

Detailed Description

Event sent when user presses a key.


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