Aether
SDL2 based UI Framework for NX
|
A class that represents an Aether input event. More...
#include <InputEvent.hpp>
Public Member Functions | |
InputEvent (SDL_Event event) | |
Construct a new Input Event object from a SDL_Event. More... | |
EventType | type () |
Getter function to get event type. More... | |
Button | button () |
Getter function to get button information for event. More... | |
int | id () |
Getter function to get event id. More... | |
int | touchX () |
Getter function to get the horizontal position for a touch event. More... | |
int | touchY () |
Getter function to get the vertical position for a touch event. More... | |
int | touchDX () |
Getter function to get the change of horizontal position for a touch move event. More... | |
int | touchDY () |
Getter function to get the change of vertical position for a touch move event. More... | |
~InputEvent () | |
Destroy the Input Event object. | |
A class that represents an Aether input event.
This is basic stripped down version of SDL_Event only containing information that will be handled by Aether.
Aether::InputEvent::InputEvent | ( | SDL_Event | event | ) |
Construct a new Input Event object from a SDL_Event.
event | SDL_Event to make InputEvent from |
Button Aether::InputEvent::button | ( | ) |
Getter function to get button information for event.
int Aether::InputEvent::id | ( | ) |
Getter function to get event id.
int Aether::InputEvent::touchDX | ( | ) |
Getter function to get the change of horizontal position for a touch move event.
int Aether::InputEvent::touchDY | ( | ) |
Getter function to get the change of vertical position for a touch move event.
int Aether::InputEvent::touchX | ( | ) |
Getter function to get the horizontal position for a touch event.
int Aether::InputEvent::touchY | ( | ) |
Getter function to get the vertical position for a touch event.
EventType Aether::InputEvent::type | ( | ) |
Getter function to get event type.