CSFML

- Main Page
- Data Structures
- Files

- File List
- Globals

Data Structures | Enumerations
Event.h File Reference
`#include <SFML/Window/Export.h>`
`#include <SFML/Window/Joystick.h>`
`#include <SFML/Window/Keyboard.h>`
`#include <SFML/Window/Mouse.h>`
`#include <SFML/Window/Sensor.h>`

Go to the source code of this file.

## Data Structures

struct | sfKeyEvent
| Keyboard event parameters. More...
struct | sfTextEvent
| Text event parameters. More...
struct | sfMouseMoveEvent
| Mouse move event parameters. More...
struct | sfMouseButtonEvent
| Mouse buttons events parameters. More...
struct | sfMouseWheelEvent
| Mouse wheel events parameters (deprecated) 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,
sfEvtLostFocus,
sfEvtGainedFocus,
sfEvtTextEntered,
sfEvtKeyPressed,
sfEvtKeyReleased,
sfEvtMouseWheelMoved,
sfEvtMouseWheelScrolled,
sfEvtMouseButtonPressed,
sfEvtMouseButtonReleased,
sfEvtMouseMoved,
sfEvtMouseEntered,
sfEvtMouseLeft,
sfEvtJoystickButtonPressed,
sfEvtJoystickButtonReleased,
sfEvtJoystickMoved,
sfEvtJoystickConnected,
sfEvtJoystickDisconnected,
sfEvtTouchBegan,
sfEvtTouchMoved,
sfEvtTouchEnded,
sfEvtSensorChanged,
sfEvtCount
}

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

## Enumeration Type Documentation

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)
sfEvtLostFocus | The window lost the focus (no data)
sfEvtGainedFocus | 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)
sfEvtMouseWheelMoved | The mouse wheel was scrolled (data in event.mouseWheel) (deprecated)
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)
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.