25 #ifndef SFML_EVENT_HPP
26 #define SFML_EVENT_HPP
31 #include <SFML/Config.hpp>
32 #include <SFML/Window/Joystick.hpp>
33 #include <SFML/Window/Keyboard.hpp>
34 #include <SFML/Window/Mouse.hpp>
35 #include <SFML/Window/Sensor.hpp>
224 #endif // SFML_EVENT_HPP
Uint32 unicode
UTF-32 Unicode value of the character.
Size events parameters (Resized)
TextEvent text
Text event parameters (Event::TextEntered)
JoystickButtonEvent joystickButton
Joystick button event parameters (Event::JoystickButtonPressed, Event::JoystickButtonReleased) ...
unsigned int width
New width, in pixels.
bool alt
Is the Alt key pressed?
unsigned int joystickId
Index of the joystick (in range [0 .. Joystick::Count - 1])
A joystick was connected (data in event.joystickConnect)
The window was resized (data in event.size)
float z
Current value of the sensor on Z axis.
Joystick::Axis axis
Axis on which the joystick moved.
float x
Current value of the sensor on X axis.
Joystick axis move event parameters (JoystickMoved)
MouseWheelEvent mouseWheel
Mouse wheel event parameters (Event::MouseWheelMoved)
A key was pressed (data in event.key)
unsigned int height
New height, in pixels.
A joystick was disconnected (data in event.joystickConnect)
The window lost the focus (no data)
MouseButtonEvent mouseButton
Mouse button event parameters (Event::MouseButtonPressed, Event::MouseButtonReleased) ...
A touch moved (data in event.touch)
Joystick connection events parameters (JoystickConnected, JoystickDisconnected)
Keep last – the total number of event types.
Sensor event parameters (SensorChanged)
Mouse wheel events parameters (MouseWheelMoved)
A sensor value changed (data in event.sensor)
SizeEvent size
Size event parameters (Event::Resized)
int delta
Number of ticks the wheel has moved (positive is up, negative is down)
JoystickMoveEvent joystickMove
Joystick move event parameters (Event::JoystickMoved)
TouchEvent touch
Touch events parameters (Event::TouchBegan, Event::TouchMoved, Event::TouchEnded) ...
A joystick button was released (data in event.joystickButton)
int x
X position of the touch, relative to the left of the owner window.
A touch event ended (data in event.touch)
int y
Y position of the mouse pointer, relative to the top of the owner window.
The window requested to be closed (no data)
A key was released (data in event.key)
A touch event began (data in event.touch)
JoystickConnectEvent joystickConnect
Joystick (dis)connect event parameters (Event::JoystickConnected, Event::JoystickDisconnected) ...
Text event parameters (TextEntered)
Touch events parameters (TouchBegan, TouchMoved, TouchEnded)
bool shift
Is the Shift key pressed?
int x
X position of the mouse pointer, relative to the left of the owner window.
Mouse move event parameters (MouseMoved)
KeyEvent key
Key event parameters (Event::KeyPressed, Event::KeyReleased)
Sensor::Type type
Type of the sensor.
The window gained the focus (no data)
float position
New position on the axis (in range [-100 .. 100])
The mouse cursor entered the area of the window (no data)
unsigned int joystickId
Index of the joystick (in range [0 .. Joystick::Count - 1])
The joystick moved along an axis (data in event.joystickMove)
int y
Y position of the touch, relative to the top of the owner window.
A mouse button was released (data in event.mouseButton)
EventType
Enumeration of the different types of events.
Keyboard::Key code
Code of the key that has been pressed.
int y
Y position of the mouse pointer, relative to the top of the owner window.
A joystick button was pressed (data in event.joystickButton)
A character was entered (data in event.text)
The mouse cursor left the area of the window (no data)
MouseMoveEvent mouseMove
Mouse move event parameters (Event::MouseMoved)
Keyboard event parameters (KeyPressed, KeyReleased)
float y
Current value of the sensor on Y axis.
bool system
Is the System key pressed?
EventType type
Type of the event.
bool control
Is the Control key pressed?
The mouse wheel was scrolled (data in event.mouseWheel)
SensorEvent sensor
Sensor event parameters (Event::SensorChanged)
int x
X position of the mouse pointer, relative to the left of the owner window.
unsigned int finger
Index of the finger in case of multi-touch events.
A mouse button was pressed (data in event.mouseButton)
Defines a system event and its parameters.
The mouse cursor moved (data in event.mouseMove)
Axis
Axes supported by SFML joysticks.