Mercurial > repos > blastem
comparison render.h @ 741:80a67be1770b
Initial work on Windows port
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 01 Apr 2014 19:43:58 -0700 |
parents | 7b0df1aaf384 |
children | fc68992cf18d |
comparison
equal
deleted
inserted
replaced
589:2dde38c1744f | 741:80a67be1770b |
---|---|
3 This file is part of BlastEm. | 3 This file is part of BlastEm. |
4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. | 4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. |
5 */ | 5 */ |
6 #ifndef RENDER_H_ | 6 #ifndef RENDER_H_ |
7 #define RENDER_H_ | 7 #define RENDER_H_ |
8 | |
9 //TODO: Throw an ifdef in here once there's more than one renderer | |
10 #include <SDL.h> | |
11 #define RENDERKEY_UP SDLK_UP | |
12 #define RENDERKEY_DOWN SDLK_DOWN | |
13 #define RENDERKEY_LEFT SDLK_LEFT | |
14 #define RENDERKEY_RIGHT SDLK_RIGHT | |
15 #define RENDERKEY_ESC SDLK_ESCAPE | |
16 #define RENDERKEY_LSHIFT SDLK_LSHIFT | |
17 #define RENDERKEY_RSHIFT SDLK_RSHIFT | |
18 #define RENDER_DPAD_UP SDL_HAT_UP | |
19 #define RENDER_DPAD_DOWN SDL_HAT_DOWN | |
20 #define RENDER_DPAD_LEFT SDL_HAT_LEFT | |
21 #define RENDER_DPAD_RIGHT SDL_HAT_RIGHT | |
22 | |
23 #define MAX_JOYSTICKS 8 | |
8 | 24 |
9 #include "vdp.h" | 25 #include "vdp.h" |
10 #include "psg.h" | 26 #include "psg.h" |
11 #include "ym2612.h" | 27 #include "ym2612.h" |
12 | 28 |
33 void process_events(); | 49 void process_events(); |
34 int render_joystick_num_buttons(int joystick); | 50 int render_joystick_num_buttons(int joystick); |
35 int render_joystick_num_hats(int joystick); | 51 int render_joystick_num_hats(int joystick); |
36 int render_num_joysticks(); | 52 int render_num_joysticks(); |
37 | 53 |
38 //TODO: Throw an ifdef in here once there's more than one renderer | |
39 #include <SDL.h> | |
40 #define RENDERKEY_UP SDLK_UP | |
41 #define RENDERKEY_DOWN SDLK_DOWN | |
42 #define RENDERKEY_LEFT SDLK_LEFT | |
43 #define RENDERKEY_RIGHT SDLK_RIGHT | |
44 #define RENDERKEY_ESC SDLK_ESCAPE | |
45 #define RENDERKEY_LSHIFT SDLK_LSHIFT | |
46 #define RENDERKEY_RSHIFT SDLK_RSHIFT | |
47 #define RENDER_DPAD_UP SDL_HAT_UP | |
48 #define RENDER_DPAD_DOWN SDL_HAT_DOWN | |
49 #define RENDER_DPAD_LEFT SDL_HAT_LEFT | |
50 #define RENDER_DPAD_RIGHT SDL_HAT_RIGHT | |
51 | 54 |
52 #define MAX_JOYSTICKS 8 | |
53 | 55 |
54 #endif //RENDER_H_ | 56 #endif //RENDER_H_ |
55 | 57 |