Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
431:440efd7d27a9 | 432:18cde14e8c10 |
---|---|
70 SDL_CloseAudio(); | 70 SDL_CloseAudio(); |
71 } | 71 } |
72 | 72 |
73 SDL_Joystick * joysticks[MAX_JOYSTICKS]; | 73 SDL_Joystick * joysticks[MAX_JOYSTICKS]; |
74 int num_joysticks; | 74 int num_joysticks; |
75 | |
76 int render_num_joysticks() | |
77 { | |
78 return num_joysticks; | |
79 } | |
75 | 80 |
76 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b) | 81 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b) |
77 { | 82 { |
78 return SDL_MapRGB(screen->format, r, g, b); | 83 return SDL_MapRGB(screen->format, r, g, b); |
79 } | 84 } |