extra input methods
[drnoksnes] / platform / platform.h
1 #ifndef _PLATFORM_SDL_H_
2 #define _PLATFORM_SDL_H_
3
4 #include "port.h"
5
6 // Configuration and command line parsing
7 void S9xLoadConfig(int argc, const char ** argv);
8 void S9xSetRomFile(const char * file);
9 extern struct config {
10         char romFile[PATH_MAX];
11         char hacksFile[PATH_MAX];
12         bool fullscreen;
13         bool xsp;
14         bool enableAudio;
15         unsigned short joypad1Mapping[256];
16         unsigned char action[256];
17         bool quitting;
18 } Config;
19
20 // Video
21 void S9xVideoToggleFullscreen();
22 void S9xVideoOutputFocus(bool hasFocus);
23
24 // Audio output
25 void S9xInitAudioOutput();
26 void S9xDeinitAudioOutput();
27 void S9xAudioOutputEnable(bool enable);
28
29 // Input actions
30 #define kActionNone                                             0
31 #define kActionQuit                                     (1U << 0)
32 #define kActionToggleFullscreen         (1U << 1)
33
34 void S9xDoAction(unsigned char action);
35
36 // Path things
37 const char * S9xFiletitle (const char * f);
38
39 #endif