X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=input.c;h=153e6acdc3d9792d6b0e09cd7ee486d9986e66ed;hb=5a01fba679330353ce293b2c744f55b2e51bea7d;hp=3eee0b0d191c4598d5bb9bd440159121afb5c306;hpb=4742480dcabcbd9d23fd8cb9a655fc8c9c314513;p=gpsp.git diff --git a/input.c b/input.c index 3eee0b0..153e6ac 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 @@ -509,6 +509,13 @@ u32 update_input() buttons |= GP2X_VOL_MIDDLE; } + /* for Wiz */ + if((buttons & GP2X_VOL_DOWN) && (buttons & GP2X_SELECT)) + { + buttons &= ~(GP2X_VOL_DOWN | GP2X_SELECT); + buttons |= GP2X_VOL_MIDDLE; + } + handled_buttons = ((last_buttons ^ buttons) | GP2X_VOL_DOWN | GP2X_VOL_UP) & buttons; last_buttons = buttons;