removed dependency on hildon-games-wrapper
[drnoksnes] / platform / platform.h
index 150931f..41e7f62 100644 (file)
@@ -4,7 +4,7 @@
 #include "port.h"
 
 // Configuration and command line parsing
-void S9xLoadConfig(int argc, const char ** argv);
+void S9xLoadConfig(int argc, char ** argv);
 void S9xUnloadConfig();
 void S9xSetRomFile(const char * file);
 extern struct config {
@@ -22,11 +22,14 @@ extern struct config {
        char * hacksFile;
        /** Enable touchscreen controls */
        bool touchscreenInput;
+       /** Display touchscreen controls grid */
+       bool touchscreenShow;
+       /** If true, next time the main loop is entered application will close */
+       bool quitting;
        /** Current scancode->joypad mapping */
        unsigned short joypad1Mapping[256];
+       unsigned short joypad2Mapping[256];
        unsigned char action[256];
-       /** If true, next time the main loop is entered application will close */
-       bool quitting;
 } Config;
 
 // Video
@@ -36,10 +39,13 @@ extern struct gui {
        /** Size of the (scaled) rendering area, relative to window. */
        unsigned short RenderX, RenderY, RenderW, RenderH;
        /** Scaling ratio */
-       unsigned short Scale;
+       float ScaleX, ScaleY;
 } GUI;
+
+void S9xInitDisplay(int argc, char **argv);
+void S9xDeinitDisplay();
 void S9xVideoToggleFullscreen();
-void S9xVideoOutputFocus(bool hasFocus);
+void S9xSetTitle (const char *title);
 
 // Audio output
 void S9xInitAudioOutput();
@@ -47,9 +53,11 @@ void S9xDeinitAudioOutput();
 void S9xAudioOutputEnable(bool enable);
 
 // Input devices
-EXTERN_C void S9xInitInputDevices();
+void S9xInitInputDevices();
 void S9xDeinitInputDevices();
 void S9xInputScreenChanged();
+void S9xInputScreenDraw(int pixelSize, void * buffer, int pitch);
+void S9xProcessEvents(bool block);
 
 // Input actions
 #define kActionNone                                            0