Lugdunum
0.1.0
|
Represents an event. More...
#include <Event.hpp>
Public Types | |
enum | Type : uint32_t { Type::Close, Type::Destroy, Type::Resize, Type::KeyPressed, Type::KeyReleased, Type::CharEntered, Type::ButtonPressed, Type::ButtonReleased, Type::MouseMoved, Type::MouseWheel, Type::MouseLeave, Type::MouseEnter, Type::GamePadChange, Type::TouchScreenChange } |
Public Attributes | |
Type | type |
The type of the event. More... | |
union { | |
KeyEvent key | |
A KeyEvent. More... | |
CharEvent character | |
A CharEvent. More... | |
MouseEvent mouse | |
A MouseEvent. More... | |
GamePadEvent gamePad | |
TouchScreenEvent touchScreen | |
}; | |
|
strong |
Type of event
Enumerator | |
---|---|
Close | Window close event. |
Destroy | Window destroy event. |
Resize | Window resize event. |
KeyPressed | KeyPressed event. |
KeyReleased | KeyReleased event. |
CharEntered | CharEntered event. |
ButtonPressed | ButtonPressed event. |
ButtonReleased | ButtonReleased event. |
MouseMoved | MouseMoved event. |
MouseWheel | MouseWheelRotated event. |
MouseLeave | Mouse left window event. |
MouseEnter | Mouse entered window event. |
GamePadChange | |
TouchScreenChange |
MouseEvent lug::Window::Event::mouse |
A MouseEvent.
GamePadEvent lug::Window::Event::gamePad |
TouchScreenEvent lug::Window::Event::touchScreen |
union { ... } |
Value of the event