Event#
Enums
-
enum sfEventType#
Definition of all the event types.
Values:
-
enumerator sfEvtClosed#
The window requested to be closed (no data)
-
enumerator sfEvtResized#
The window was resized (data in event.size)
-
enumerator sfEvtLostFocus#
The window lost the focus (no data)
-
enumerator sfEvtGainedFocus#
The window gained the focus (no data)
-
enumerator sfEvtTextEntered#
A character was entered (data in event.text)
-
enumerator sfEvtKeyPressed#
A key was pressed (data in event.key)
-
enumerator sfEvtKeyReleased#
A key was released (data in event.key)
-
enumerator sfEvtMouseWheelMoved#
The mouse wheel was scrolled (data in event.mouseWheel) (deprecated)
-
enumerator sfEvtMouseWheelScrolled#
The mouse wheel was scrolled (data in event.mouseWheelScroll)
-
enumerator sfEvtMouseButtonPressed#
A mouse button was pressed (data in event.mouseButton)
-
enumerator sfEvtMouseButtonReleased#
A mouse button was released (data in event.mouseButton)
-
enumerator sfEvtMouseMoved#
The mouse cursor moved (data in event.mouseMove)
-
enumerator sfEvtMouseEntered#
The mouse cursor entered the area of the window (no data)
-
enumerator sfEvtMouseLeft#
The mouse cursor left the area of the window (no data)
-
enumerator sfEvtJoystickButtonPressed#
A joystick button was pressed (data in event.joystickButton)
-
enumerator sfEvtJoystickButtonReleased#
A joystick button was released (data in event.joystickButton)
-
enumerator sfEvtJoystickMoved#
The joystick moved along an axis (data in event.joystickMove)
-
enumerator sfEvtJoystickConnected#
A joystick was connected (data in event.joystickConnect)
-
enumerator sfEvtJoystickDisconnected#
A joystick was disconnected (data in event.joystickConnect)
-
enumerator sfEvtTouchBegan#
A touch event began (data in event.touch)
-
enumerator sfEvtTouchMoved#
A touch moved (data in event.touch)
-
enumerator sfEvtTouchEnded#
A touch event ended (data in event.touch)
-
enumerator sfEvtSensorChanged#
A sensor value changed (data in event.sensor)
-
enumerator sfEvtCount#
Keep last — the total number of event types.
-
enumerator sfEvtClosed#
-
struct sfKeyEvent#
- #include <Event.h>
Keyboard event parameters.
-
struct sfTextEvent#
- #include <Event.h>
Text event parameters.
-
struct sfMouseMoveEvent#
- #include <Event.h>
Mouse move event parameters.
-
struct sfMouseButtonEvent#
- #include <Event.h>
Mouse buttons events parameters.
-
struct sfMouseWheelEvent#
- #include <Event.h>
Mouse wheel events parameters.
- Deprecated:
Use sfMouseWheelScrollEvent instead.
-
struct sfMouseWheelScrollEvent#
- #include <Event.h>
Mouse wheel events parameters.
-
struct sfJoystickMoveEvent#
- #include <Event.h>
Joystick axis move event parameters.
-
struct sfJoystickButtonEvent#
- #include <Event.h>
Joystick buttons events parameters.
-
struct sfJoystickConnectEvent#
- #include <Event.h>
Joystick connection/disconnection event parameters.
-
struct sfSizeEvent#
- #include <Event.h>
Size events parameters.
-
struct sfTouchEvent#
- #include <Event.h>
Touch events parameters.
-
struct sfSensorEvent#
- #include <Event.h>
Sensor event parameters.
-
union sfEvent#
- #include <Event.h>
sfEvent defines a system event and its parameters
Public Members
-
sfEventType type#
Type of the event.
-
sfSizeEvent size#
Size event parameters.
-
sfKeyEvent key#
Key event parameters.
-
sfTextEvent text#
Text event parameters.
-
sfMouseMoveEvent mouseMove#
Mouse move event parameters.
-
sfMouseButtonEvent mouseButton#
Mouse button event parameters.
-
sfMouseWheelEvent mouseWheel#
Mouse wheel event parameters (deprecated)
-
sfMouseWheelScrollEvent mouseWheelScroll#
Mouse wheel event parameters.
-
sfJoystickMoveEvent joystickMove#
Joystick move event parameters.
-
sfJoystickButtonEvent joystickButton#
Joystick button event parameters.
-
sfJoystickConnectEvent joystickConnect#
Joystick (dis)connect event parameters.
-
sfTouchEvent touch#
Touch events parameters.
-
sfSensorEvent sensor#
Sensor event parameters.
-
sfEventType type#