|
ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
|
Event structure for UI interactions. More...
#include <event.h>
Public Types | |
| enum class | Type { KeyDown , KeyUp , TextInput , PointerDown , PointerUp , PointerMove , PointerEnter , PointerLeave , Activate , Back } |
| Enumeration of UI event types. More... | |
Public Attributes | |
| Type | type {} |
| The type of the event. | |
| asw::input::Key | key {} |
| The key associated with the event. | |
| bool | shift = false |
| Whether the shift key is held. | |
| int | pointer_id = 0 |
| The pointer identifier. | |
| asw::Vec2< float > | pointer_pos |
| The pointer position. | |
| asw::input::MouseButton | mouse_button {} |
| The mouse button associated with the event. | |
| std::string | text |
| The text associated with a TextInput event. | |
|
strong |
| asw::input::Key asw::ui::UIEvent::key {} |
| asw::input::MouseButton asw::ui::UIEvent::mouse_button {} |
| asw::Vec2<float> asw::ui::UIEvent::pointer_pos |
| bool asw::ui::UIEvent::shift = false |
| std::string asw::ui::UIEvent::text |