Mercurial > repos > blastem
view render_sdl.h @ 1608:419a0a133b5c
Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 03 Aug 2018 19:32:21 -0700 |
parents | 437e80a700aa |
children | 18a946ec74c8 |
line wrap: on
line source
#ifndef RENDER_SDL_H_ #define RENDER_SDL_H_ #include <SDL.h> SDL_Window *render_get_window(void); typedef void (*ui_render_fun)(void); typedef void (*event_handler)(SDL_Event *); void render_update_display(void); void render_set_ui_render_fun(ui_render_fun); void render_set_event_handler(event_handler handler); void render_set_gl_context_handlers(ui_render_fun destroy, ui_render_fun create); SDL_Joystick *render_get_joystick(int index); SDL_GameController *render_get_controller(int index); #endif //RENDER_SDL_H_