revive PC build, support Linux
[gpsp.git] / input.c
diff --git a/input.c b/input.c
index 153e6ac..e4c48fd 100644 (file)
--- a/input.c
+++ b/input.c
@@ -374,7 +374,7 @@ u32 gamepad_config_map[16] =
   BUTTON_ID_MENU                // Vol middle
 };
 
-extern u32 gp2x_fps_debug;
+extern u32 fps_debug;
 extern u32 gpsp_gp2x_joystick_read(void);
 
 gui_action_type get_gui_input()
@@ -412,6 +412,12 @@ gui_action_type get_gui_input()
   if(new_buttons & GP2X_RIGHT)
     new_button = CURSOR_RIGHT;
 
+  if(new_buttons & GP2X_L)
+    new_button = CURSOR_L;
+
+  if(new_buttons & GP2X_R)
+    new_button = CURSOR_R;
+
 
   if(new_button != CURSOR_NONE)
   {
@@ -571,7 +577,7 @@ u32 update_input()
         break;
 
       case BUTTON_ID_FPS:
-        gp2x_fps_debug ^= 1;
+        fps_debug ^= 1;
         break;
     }