1 #ifndef CPP3DS_EVENT_HPP
2 #define CPP3DS_EVENT_HPP
4 #include <cpp3ds/Config.hpp>
5 #include <cpp3ds/Window/Joystick.hpp>
6 #include <cpp3ds/Window/Keyboard.hpp>
7 #include <cpp3ds/Window/Sensor.hpp>
A touch event began (data in event.touch)
JoystickMoveEvent joystickMove
Joystick move event parameters (Event::JoystickMoved)
A key was pressed (data in event.key)
Joystick axis move event parameters (JoystickMoved)
Sensor::Type type
Type of the sensor.
float z
Current value of the sensor on Z axis.
Keep last – the total number of event types.
KeyEvent key
Key event parameters (Event::KeyPressed, Event::KeyReleased)
int x
New position on the x-axis (in range [-100 .. 100])
Keyboard event parameters (KeyPressed, KeyReleased)
Touch events parameters (TouchBegan, TouchMoved, TouchEnded)
Slider event parameters (Slider3DChanged, SliderVolumeChanged)
Sensor event parameters (SensorChanged)
int y
Y position of the touch, relative to the top of the owner window.
float y
Current value of the sensor on Y axis.
int y
New position on the y-axis (in range [-100 .. 100])
EventType type
Type of the event.
SensorEvent sensor
Sensor event parameters (Event::SensorChanged)
The joystick moved along an axis (data in event.joystickMove)
A touch event ended (data in event.touch)
float x
Current value of the sensor on X axis.
float value
Current value of the slider [0-1] range.
Defines a system event and its parameters.
A key was released (data in event.key)
A sensor value changed (data in event.sensor)
EventType
Enumeration of the different types of events.
int x
X position of the touch, relative to the left of the owner window.
A touch moved (data in event.touch)
Keyboard::Key code
Code of the key(s) that has been pressed.
TouchEvent touch
Touch events parameters (Event::TouchBegan, Event::TouchMoved, Event::TouchEnded) ...