6 // Configuration and command line parsing
7 void S9xLoadConfig(int argc, const char ** argv);
8 void S9xUnloadConfig();
9 void S9xSetRomFile(const char * file);
10 extern struct config {
11 /** Unfreeze from .frz.gz snapshot on start */
13 /** Freeze to .frz.gz on exit */
15 /** Create fullscreen surface */
17 /** Name of the scaler to use or NULL for default */
19 /** Audio output enabled */
21 /** Speedhacks file to use */
23 /** Enable touchscreen controls */
24 bool touchscreenInput;
25 /** Display touchscreen controls grid */
27 /** Current scancode->joypad mapping */
28 unsigned short joypad1Mapping[256];
29 unsigned char action[256];
30 /** If true, next time the main loop is entered application will close */
36 /** Size of the GUI Window */
37 unsigned short Width, Height;
38 /** Size of the (scaled) rendering area, relative to window. */
39 unsigned short RenderX, RenderY, RenderW, RenderH;
43 void S9xVideoToggleFullscreen();
44 void S9xVideoOutputFocus(bool hasFocus);
47 void S9xInitAudioOutput();
48 void S9xDeinitAudioOutput();
49 void S9xAudioOutputEnable(bool enable);
52 EXTERN_C void S9xInitInputDevices();
53 void S9xDeinitInputDevices();
54 void S9xInputScreenChanged();
55 void S9xInputScreenDraw(int pixelSize, void * buffer, int pitch);
59 #define kActionQuit (1U << 0)
60 #define kActionToggleFullscreen (1U << 1)
61 #define kActionQuickLoad1 (1U << 2)
62 #define kActionQuickSave1 (1U << 3)
63 #define kActionQuickLoad2 (1U << 4)
64 #define kActionQuickSave2 (1U << 5)
66 void S9xDoAction(unsigned char action);