Mercurial > repos > blastem
comparison render.h @ 1187:6a4503fad67e
Initial support for using SDL2 game controller mapping functionality
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 22 Jan 2017 16:23:59 -0800 |
parents | b1147418254a |
children | a6ae693974e0 |
comparison
equal
deleted
inserted
replaced
1186:110251ea369e | 1187:6a4503fad67e |
---|---|
61 VID_NTSC, | 61 VID_NTSC, |
62 VID_PAL, | 62 VID_PAL, |
63 NUM_VID_STD | 63 NUM_VID_STD |
64 } vid_std; | 64 } vid_std; |
65 | 65 |
66 #define RENDER_DPAD_BIT 0x40000000 | |
67 #define RENDER_AXIS_BIT 0x20000000 | |
68 #define RENDER_INVALID_NAME -1 | |
69 #define RENDER_NOT_MAPPED -2 | |
70 #define RENDER_NOT_PLUGGED_IN -3 | |
71 | |
66 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); | 72 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); |
67 uint32_t *render_get_framebuffer(uint8_t which, int *pitch); | 73 uint32_t *render_get_framebuffer(uint8_t which, int *pitch); |
68 void render_framebuffer_updated(uint8_t which, int width); | 74 void render_framebuffer_updated(uint8_t which, int width); |
69 void render_init(int width, int height, char * title, uint8_t fullscreen); | 75 void render_init(int width, int height, char * title, uint8_t fullscreen); |
70 void render_set_video_standard(vid_std std); | 76 void render_set_video_standard(vid_std std); |
79 void process_events(); | 85 void process_events(); |
80 int render_width(); | 86 int render_width(); |
81 int render_height(); | 87 int render_height(); |
82 int render_fullscreen(); | 88 int render_fullscreen(); |
83 void process_events(); | 89 void process_events(); |
90 int32_t render_translate_input_name(int32_t controller, char *name); | |
91 int32_t render_dpad_part(int32_t input); | |
92 uint8_t render_direction_part(int32_t input); | |
84 void render_errorbox(char *title, char *message); | 93 void render_errorbox(char *title, char *message); |
85 void render_warnbox(char *title, char *message); | 94 void render_warnbox(char *title, char *message); |
86 void render_infobox(char *title, char *message); | 95 void render_infobox(char *title, char *message); |
87 | 96 |
88 | 97 |