24 #ifndef __GFX_EVENT_H__
25 #define __GFX_EVENT_H__
109 #define FETCH_EVENT_BLOCK 0b1
112 #define FETCH_EVENT_NONBLOCK 0b10
115 #define FETCH_EVENT_NO_GL_CHECK 0b100
signed short gfxEventGetMouseX(void)
Returns a copy of the mouse's most recent X coord (in pixels)
Definition: gfx_event.c:174
int gfxEventInit(void)
Initializes the GFX Event backend.
Definition: gfx_event.c:234
void gfxEventExit(void)
Deinitializes the GFX Event backend.
Definition: gfx_event.c:262
signed char gfxEventGetMouseMiddle(void)
Returns a copy of the mouse's middle button status.
Definition: gfx_event.c:223
int gfxEventFetchEvents(int flags)
Polls all outstanding SDL Events. Should be called from Draw Loop that holds the OpenGL context.
Definition: gfx_event.c:146
signed char gfxEventGetMouseLeft(void)
Returns a copy of the mouse's left button status.
Definition: gfx_event.c:201
signed short gfxEventGetMouseY(void)
Returns a copy of the mouse's most recent Y coord (in pixels)
Definition: gfx_event.c:187
signed char gfxEventGetMouseRight(void)
Returns a copy of the mouse's right button status.
Definition: gfx_event.c:212
QueueHandle_t buttonInputQueue
Definition: gfx_event.c:47