snes mouse support
[drnoksnes] / platform / platform.h
index b0d2803..2a7e805 100644 (file)
@@ -20,6 +20,8 @@ extern struct config {
        bool enableAudio;
        /** Speedhacks file to use */
        char * hacksFile;
+       /** Enable touchscreen controls */
+       bool touchscreenInput;
        /** Current scancode->joypad mapping */
        unsigned short joypad1Mapping[256];
        unsigned char action[256];
@@ -28,6 +30,12 @@ extern struct config {
 } Config;
 
 // Video
+extern struct gui {
+       /** Size of the GUI Window */
+       unsigned short Width, Height;
+       /** Size of the rendering area, relative to window. 2x if Xsp on. */
+       unsigned short RenderX, RenderY, RenderW, RenderH;
+} GUI;
 void S9xVideoToggleFullscreen();
 void S9xVideoOutputFocus(bool hasFocus);
 
@@ -36,6 +44,11 @@ void S9xInitAudioOutput();
 void S9xDeinitAudioOutput();
 void S9xAudioOutputEnable(bool enable);
 
+// Input devices
+EXTERN_C void S9xInitInputDevices();
+void S9xDeinitInputDevices();
+void S9xInputScreenChanged();
+
 // Input actions
 #define kActionNone                                            0
 #define kActionQuit                                    (1U << 0)