Input Events¶
Céu-SDL provides mappings to all SDL events:
https://wiki.libsdl.org/SDL_Event
TODO: not all inputs have been mapped
In addition, it provides the SDL_REDRAW
and SDL_DT
input events.
General¶
SDL_REDRAW¶
input _SDL_Renderer&&&& SDL_REDRAW;
Occurs in the end of every loop iteration in all modes of operation.
TODO: payload
SDL_DT¶
input int SDL_DT;
Occurs in the beginning of every loop iteration in the frame-based mode of operation.
The input value of type int
is always equal to CEU_SDL_MODE_FRAME
.
SDL_QUIT¶
input void SDL_QUIT;
SDL Reference: https://wiki.libsdl.org/SDL_QuitEvent
Keyboard¶
SDL_KEYDOWN¶
input _SDL_KeyboardEvent&& SDL_KEYDOWN;
SDL Reference: https://wiki.libsdl.org/SDL_KeyboardEvent
SDL_KEYUP¶
input _SDL_KeyboardEvent&& SDL_KEYUP;
SDL Reference: https://wiki.libsdl.org/SDL_KeyboardEvent
Mouse¶
SDL_MOUSEBUTTONDOWN¶
input _SDL_MouseButtonEvent&& SDL_MOUSEBUTTONDOWN;
SDL Reference: https://wiki.libsdl.org/SDL_MouseButtonEvent
SDL_MOUSEBUTTONUP¶
input _SDL_MouseButtonEvent&& SDL_MOUSEBUTTONUP;
SDL Reference: https://wiki.libsdl.org/SDL_MouseButtonEvent
SDL_MOUSEMOTION¶
input _SDL_MouseMotionEvent&& SDL_MOUSEMOTION;
SDL Reference: https://wiki.libsdl.org/SDL_MouseMotionEvent