CSFML 3.0.0
Loading...
Searching...
No Matches
Classes | Enumerations
Event.h File Reference
`#include <CSFML/Window/Export.h>`
`#include <CSFML/Window/Joystick.h>`
`#include <CSFML/Window/Keyboard.h>`
`#include <CSFML/Window/Mouse.h>`
`#include <CSFML/Window/Sensor.h>`

Go to the source code of this file.

## Classes

struct | sfKeyEvent
| Keyboard event parameters. More...
struct | sfTextEvent
| Text event parameters. More...
struct | sfMouseMoveEvent
| Mouse move event parameters. More...
struct | sfMouseMoveRawEvent
| Mouse move raw event parameters. More...
struct | sfMouseButtonEvent
| Mouse buttons events parameters. More...
struct | sfMouseWheelScrollEvent
| Mouse wheel events parameters. More...
struct | sfJoystickMoveEvent
| Joystick axis move event parameters. More...
struct | sfJoystickButtonEvent
| Joystick buttons events parameters. More...
struct | sfJoystickConnectEvent
| Joystick connection/disconnection event parameters. More...
struct | sfSizeEvent
| Size events parameters. More...
struct | sfTouchEvent
| Touch events parameters. More...
struct | sfSensorEvent
| Sensor event parameters. More...
union | sfEvent
| sfEvent defines a system event and its parameters More...

## Enumerations

enum

sfEventType {
sfEvtClosed , sfEvtResized , sfEvtFocusLost , sfEvtFocusGained ,
sfEvtTextEntered , sfEvtKeyPressed , sfEvtKeyReleased , sfEvtMouseWheelScrolled ,
sfEvtMouseButtonPressed , sfEvtMouseButtonReleased , sfEvtMouseMoved , sfEvtMouseMovedRaw ,
sfEvtMouseEntered , sfEvtMouseLeft , sfEvtJoystickButtonPressed , sfEvtJoystickButtonReleased ,
sfEvtJoystickMoved , sfEvtJoystickConnected , sfEvtJoystickDisconnected , sfEvtTouchBegan ,
sfEvtTouchMoved , sfEvtTouchEnded , sfEvtSensorChanged , sfEvtCount
}

| Definition of all the event types. More...

## Enumeration Type Documentation

## ◆ sfEventType

enum sfEventType

Definition of all the event types.

Enumerator
sfEvtClosed | The window requested to be closed (no data).
sfEvtResized | The window was resized (data in event.size).
sfEvtFocusLost | The window lost the focus (no data).
sfEvtFocusGained | The window gained the focus (no data).
sfEvtTextEntered | A character was entered (data in event.text).
sfEvtKeyPressed | A key was pressed (data in event.key).
sfEvtKeyReleased | A key was released (data in event.key).
sfEvtMouseWheelScrolled | The mouse wheel was scrolled (data in event.mouseWheelScroll).
sfEvtMouseButtonPressed | A mouse button was pressed (data in event.mouseButton).
sfEvtMouseButtonReleased | A mouse button was released (data in event.mouseButton).
sfEvtMouseMoved | The mouse cursor moved (data in event.mouseMove).
sfEvtMouseMovedRaw | The mouse cursor moved (data in event.mouseMove).
sfEvtMouseEntered | The mouse cursor entered the area of the window (no data).
sfEvtMouseLeft | The mouse cursor left the area of the window (no data).
sfEvtJoystickButtonPressed | A joystick button was pressed (data in event.joystickButton).
sfEvtJoystickButtonReleased | A joystick button was released (data in event.joystickButton).
sfEvtJoystickMoved | The joystick moved along an axis (data in event.joystickMove).
sfEvtJoystickConnected | A joystick was connected (data in event.joystickConnect).
sfEvtJoystickDisconnected | A joystick was disconnected (data in event.joystickConnect).
sfEvtTouchBegan | A touch event began (data in event.touch).
sfEvtTouchMoved | A touch moved (data in event.touch).
sfEvtTouchEnded | A touch event ended (data in event.touch).
sfEvtSensorChanged | A sensor value changed (data in event.sensor).
sfEvtCount | Keep last – the total number of event types.

Definition at line 42 of file Event.h.