png screenshot support
[drnoksnes] / platform / platform.h
index 2cd1769..59f5549 100644 (file)
@@ -22,8 +22,12 @@ extern struct config {
        bool saver;
        /** Speedhacks file to use */
        char * hacksFile;
-       /** Enable touchscreen controls */
-       bool touchscreenInput;
+       /** Enable player 1 joypad */
+       bool joypad1Enabled;
+       /** Enable player 2 joypad */
+       bool joypad2Enabled;
+       /** Enable touchscreen controls (0 = no, 1 = for player 1, 2 = for player 2) */
+       char touchscreenInput;
        /** Display touchscreen controls grid */
        bool touchscreenShow;
        /** If true, next time the main loop is entered application will close */
@@ -58,17 +62,18 @@ void S9xAudioOutputEnable(bool enable);
 void S9xInitInputDevices();
 void S9xDeinitInputDevices();
 void S9xInputScreenChanged();
-void S9xInputScreenDraw(int pixelSize, void * buffer, int pitch);
+void S9xInputScreenDraw(void * buffer, int pitch);
 void S9xProcessEvents(bool block);
 
 // Input actions
 #define kActionNone                                            0
-#define kActionQuit                                    (1U << 0)
-#define        kActionToggleFullscreen         (1U << 1)
-#define kActionQuickLoad1                      (1U << 2)
-#define kActionQuickSave1                      (1U << 3)
-#define kActionQuickLoad2                      (1U << 4)
-#define kActionQuickSave2                      (1U << 5)
+#define kActionQuit                 (1U << 0)
+#define        kActionToggleFullscreen     (1U << 1)
+#define kActionScreenshot           (1U << 2)
+#define kActionQuickLoad1                      (1U << 4)
+#define kActionQuickSave1                      (1U << 5)
+#define kActionQuickLoad2                      (1U << 6)
+#define kActionQuickSave2                      (1U << 7)
 
 void S9xDoAction(unsigned char action);