Mercurial > repos > blastem
diff render_sdl.c @ 432:18cde14e8c10
Read joystick bindings from config file
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 10 Jul 2013 23:47:48 -0700 |
parents | add9e2f5c0e3 |
children | cc754a309ead |
line wrap: on
line diff
--- a/render_sdl.c Wed Jul 10 22:48:17 2013 -0700 +++ b/render_sdl.c Wed Jul 10 23:47:48 2013 -0700 @@ -73,6 +73,11 @@ SDL_Joystick * joysticks[MAX_JOYSTICKS]; int num_joysticks; +int render_num_joysticks() +{ + return num_joysticks; +} + uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b) { return SDL_MapRGB(screen->format, r, g, b);