Mercurial > repos > blastem
comparison render_sdl.h @ 2693:46dba737b931
WIP Nuklear UI in VDP debug windows
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 19 Jun 2025 19:59:05 -0700 |
parents | 1c7329ac7f3f |
children |
comparison
equal
deleted
inserted
replaced
2692:effbb52ab3f0 | 2693:46dba737b931 |
---|---|
1 #ifndef RENDER_SDL_H_ | 1 #ifndef RENDER_SDL_H_ |
2 #define RENDER_SDL_H_ | 2 #define RENDER_SDL_H_ |
3 | 3 |
4 #include <SDL.h> | 4 #include <SDL.h> |
5 | 5 |
6 SDL_Window *render_get_window(void); | 6 SDL_Window *render_get_window(uint8_t which); |
7 typedef void (*event_handler)(SDL_Event *); | 7 typedef void (*event_handler)(uint8_t which, SDL_Event *); |
8 void render_set_event_handler(event_handler handler); | 8 void render_set_event_handler(uint8_t which, event_handler handler); |
9 SDL_Joystick *render_get_joystick(int index); | 9 SDL_Joystick *render_get_joystick(int index); |
10 SDL_GameController *render_get_controller(int index); | 10 SDL_GameController *render_get_controller(int index); |
11 int render_find_joystick_index(SDL_JoystickID instanceID); | 11 int render_find_joystick_index(SDL_JoystickID instanceID); |
12 int render_lookup_button(char *name); | 12 int render_lookup_button(char *name); |
13 int render_lookup_axis(char *name); | 13 int render_lookup_axis(char *name); |