X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=input.c;h=94c561d9f97ebe646a64d572bc6251128a5fa79d;hb=1d02ca757541e9b8e44362c013a1300cabf69458;hp=cfaff69d1ae2c636b93c457483a673b77c7edd99;hpb=4cdfc0bc7b3dd2051b8027da4e2f35bbb9897307;p=gpsp.git diff --git a/input.c b/input.c index cfaff69..94c561d 100644 --- a/input.c +++ b/input.c @@ -364,10 +364,10 @@ u32 gamepad_config_map[16] = BUTTON_ID_SELECT, // Select BUTTON_ID_L, // Ltrigger BUTTON_ID_R, // Rtrigger - BUTTON_ID_NONE, // A + BUTTON_ID_FPS, // A BUTTON_ID_A, // B BUTTON_ID_B, // X - BUTTON_ID_NONE, // Y + BUTTON_ID_MENU, // Y BUTTON_ID_VOLDOWN, // Vol down BUTTON_ID_VOLUP, // Vol up BUTTON_ID_FPS, // Push @@ -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) {