Add copyright message to gles_video
[gpsp.git] / gp2x / gp2x.h
index ab8dd4c..9a72eae 100644 (file)
@@ -7,8 +7,8 @@ enum
   GP2X_LEFT     = 1 << 2,
   GP2X_DOWN     = 1 << 4,
   GP2X_RIGHT    = 1 << 6,
-  GP2X_START    = 1 << 8,
-  GP2X_SELECT   = 1 << 9,
+  GP2X_START    = 1 << 8,  // Wiz: Menu, Caanoo: I
+  GP2X_SELECT   = 1 << 9,  // Caanoo: II
   GP2X_L        = 1 << 10,
   GP2X_R        = 1 << 11,
   GP2X_A        = 1 << 12,
@@ -19,16 +19,28 @@ enum
   GP2X_VOL_UP   = 1 << 16,
   GP2X_VOL_DOWN = 1 << 17,
   GP2X_PUSH     = 1 << 18,
+#elif defined(POLLUX_BUILD)
+  GP2X_HOME     = 1 << 16,
+  GP2X_PUSH     = 1 << 17,
+  GP2X_VOL_UP   = 1 << 30, // dummy
+  GP2X_VOL_DOWN = 1 << 29,
 #else
   GP2X_VOL_DOWN = 1 << 22,
   GP2X_VOL_UP   = 1 << 23,
   GP2X_PUSH     = 1 << 27,
 #endif
+  GP2X_VOL_MIDDLE = (1 << 24), // fake, menu enter
 };
 
+void gpsp_plat_init(void);
+void gpsp_plat_quit(void);
 
-extern u32 gpsp_gp2x_dev_audio;
-extern u32 gpsp_gp2x_dev;
+u32 gpsp_plat_joystick_read(void);
+u32 gpsp_plat_buttons_to_cursor(u32 buttons);
+
+#define PLAT_BUTTON_COUNT 16
+#define PLAT_MENU_BUTTON 15
+extern u32 button_plat_mask_to_config[PLAT_BUTTON_COUNT];
 
 void gp2x_sound_volume(u32 volume_up);
 void gp2x_quit();