FreeRTOS Emulator with SDL2 Based Graphics and Input Library
1.0
A POSIX wrapper to run FreeRTOS on an x86 machine with some basic input and output libraries aimed at making teaching FreeRTOS simpler.
|
Utilities required by other gfx_XXX files. More...
#include "FreeRTOS.h"
#include "queue.h"
Go to the source code of this file.
Macros | |
Event fetching flags | |
Flags for gfxEventFetchEvents() Fetching of SDL events can be done in a block, nonblocking as well as GL context checking fashion. See gfxEventFetchEvents() for more details. | |
#define | FETCH_EVENT_BLOCK 0b1 |
#define | FETCH_EVENT_NONBLOCK 0b10 |
#define | FETCH_EVENT_NO_GL_CHECK 0b100 |
Functions | |
int | gfxEventInit (void) |
Initializes the GFX Event backend. More... | |
void | gfxEventExit (void) |
Deinitializes the GFX Event backend. More... | |
signed short | gfxEventGetMouseX (void) |
Returns a copy of the mouse's most recent X coord (in pixels) More... | |
signed short | gfxEventGetMouseY (void) |
Returns a copy of the mouse's most recent Y coord (in pixels) More... | |
signed char | gfxEventGetMouseLeft (void) |
Returns a copy of the mouse's left button status. More... | |
signed char | gfxEventGetMouseRight (void) |
Returns a copy of the mouse's right button status. More... | |
signed char | gfxEventGetMouseMiddle (void) |
Returns a copy of the mouse's middle button status. More... | |
int | gfxEventFetchEvents (int flags) |
Polls all outstanding SDL Events. Should be called from Draw Loop that holds the OpenGL context. More... | |
Variables | |
QueueHandle_t | buttonInputQueue |
Utilities required by other gfx_XXX files.
---------------------------------------------------------------------- Copyright (C) Alexander Hoffman, 2019 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. ----------------------------------------------------------------------