Quit requested event.
...handler...
SDLEventHandler
See SDL_Quit description in SDL documentation.
Subscribe to this message method to receive SDL_Quit events.
This notification means that the user asked the application to terminate. The application should call exit(0) if no other cleanup routines are needed, or perform cleanup and notifications for clean exit to other threads/coroutines.
Application visibility event handler.
...handler... ( gain, state )
gain | 0 if the event is a loss or 1 if it is a gain. |
state | SDL.APPMOUSEFOCUS if mouse focus was gained or lost, SDL.APPINPUTFOCUS if input focus was gained or lost, or SDL.APPACTIVE if the application was iconified (gain=0) or restored (gain=1). |
See SDL_ActiveEvent description in SDL documentation.
Subscribe to this message method to receive ActiveEvent notifications.
Window exposition (need redraw) notification.
...handler...
See SDL_ExposeEvent description in SDL documentation.
Subscribe to this message method to receive SDL_VIDEOEXPOSE notifications.
Joystick axis motion event handler
...handler... ( which, axis, value )
which | Joystick device index |
axis | Joystick axis index |
value | Axis value (range: -32768 to 32767) |
See SDL_JoyAxisEvent description in SDL documentation.
Subscribe to this message method to receive SDL_JOYAXISMOTION notifications.
Joystick trackball motion event handler
...handler... ( which, ball, xrel, yrel )
which | Joystick device index |
ball | Joystick trackball index |
xrel | The relative motion in the X direction |
yrel | The relative motion in the Y direction |
See SDL_JoyBallEvent description in SDL documentation.
Subscribe to this message method to receive SDL_JOYBALLMOTION notifications.
Joystick button event handler
...handler... ( which, button, state )
which | Joystick device index |
button | Joystick button index |
state | SDL_PRESSED or SDL_RELEASED |
See SDL_JoyButtonEvent description in SDL documentation.
Subscribe to this message method to receive SDL_JOYBUTTONDOWN notifications.
Joystick button event handler
...handler... ( which, button, state )
which | Joystick device index |
button | Joystick button index |
state | SDL_PRESSED or SDL_RELEASED |
See SDL_JoyButtonEvent description in SDL documentation.
Subscribe to this message method to receive SDL_JOYBUTTONUP notifications.
Joystick hat position change event handler
...handler... ( which, hat, value )
which | Joystick device index |
hat | Joystick hat index |
value | hat position. |
See SDL_JoyHatEvent description in SDL documentation.
Subscribe to this message method to receive SDL_JOYHATMOTION notifications.
Keyboard key down event handler.
...handler... ( state, scancode, sym, mod, unicode )
state | SDL.PRESSED or SDL.RELEASED |
scancode | Hardware specific scancode |
sym | SDL virtual keysym |
mod | Current key modifiers |
unicode | Translated character |
See SDL_KeyboardEvent description in SDL documentation.
Subscribe to this message method to receive SDL_KEYDOWN notifications.
Keyboard key down event handler.
...handler... ( state, scancode, sym, mod, unicode )
state | SDL.PRESSED or SDL.RELEASED |
scancode | Hardware specific scancode |
sym | SDL virtual keysym |
mod | Current key modifiers |
unicode | Translated character |
See SDL_KeyboardEvent description in SDL documentation.
Subscribe to this message method to receive SDL_KEYUP notifications.
Mouse button event handler
...handler... ( state, button, x, y )
state | The current button state |
button | The mouse button index (SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE, SDL_BUTTON_RIGHT) |
x | X coordinate of the mouse |
y | X coordinate of the mouse |
See SDL_MouseButtonEvent description in SDL documentation.
Subscribe to this message method to receive SDL_MOUSEBUTTONDOWN notifications.
Mouse button event handler
...handler... ( state, button, x, y )
state | The current button state |
button | The mouse button index (SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE, SDL_BUTTON_RIGHT) |
x | X coordinate of the mouse |
y | X coordinate of the mouse |
See SDL_MouseButtonEvent description in SDL documentation.
Subscribe to this message method to receive SDL_MOUSEBUTTONUP notifications.
Mouse motion event handler
...handler... ( state, x, y, xrel, yrel )
state | The current button state |
x | X coordinate of the mouse |
y | X coordinate of the mouse |
xrel | relative movement of mouse on the X axis with respect to last notification. |
yrel | relative movement of mouse on the X axis with respect to last notification. |
See SDL_MouseMotionEvent description in SDL documentation.
Subscribe to this message method to receive SDL_MOUSEMOTION notifications.
Window resize event handler
...handler... ( w, h )
w | New width of the window |
h | New height of the window |
See SDL_ResizeEvent description in SDL documentation.
Subscribe to this message method to receive SDL_VIDEORESIZE notifications.