(Android) Hook up PS Button to RGUI toggle

This commit is contained in:
twinaphex 2013-03-05 18:02:06 +01:00
parent 46db6818dd
commit b0b52f1a3c
2 changed files with 2 additions and 4 deletions

View File

@ -367,14 +367,12 @@ static void android_input_poll(void *data)
&& input_state > 0) && input_state > 0)
{ {
} }
#if 0
else else
{ {
*lifecycle_state |= (1ULL << RARCH_QUIT_KEY); *lifecycle_state |= (1ULL << RARCH_QUIT_KEY);
AInputQueue_finishEvent(android_app->inputQueue, event, handled); AInputQueue_finishEvent(android_app->inputQueue, event, handled);
break; break;
} }
#endif
} }
if (type_event == AINPUT_EVENT_TYPE_MOTION) if (type_event == AINPUT_EVENT_TYPE_MOTION)

View File

@ -320,7 +320,7 @@ void input_autodetect_setup (void *data, char *msg, size_t sizeof_msg, unsigned
keycode_lut[AKEYCODE_EQUALS] |= ((RETRO_DEVICE_ID_JOYPAD_SELECT+1) << shift); keycode_lut[AKEYCODE_EQUALS] |= ((RETRO_DEVICE_ID_JOYPAD_SELECT+1) << shift);
// use this for the RGUI toggle // use this for the RGUI toggle
//keycode_lut[AKEYCODE_MENU] |= ((RETRO_DEVICE_ID_JOYPAD_START+1) << shift); keycode_lut[AKEYCODE_MENU] |= ((RARCH_RMENU_TOGGLE+1) << shift);
// Left Analog Up: 152 // Left Analog Up: 152
// Left Analog Down: 146 // Left Analog Down: 146
@ -493,7 +493,7 @@ void input_autodetect_setup (void *data, char *msg, size_t sizeof_msg, unsigned
else else
{ {
//PS button will be used for RGUI toggle //PS button will be used for RGUI toggle
//keycode_lut[AKEYCODE_BUTTON_1] |= ((RETRO_DEVICE_ID_JOYPAD_B+1) << shift); keycode_lut[AKEYCODE_BUTTON_1] |= ((RARCH_RMENU_TOGGLE+1) << shift);
keycode_lut[AKEYCODE_BUTTON_X] |= ((RETRO_DEVICE_ID_JOYPAD_B+1) << shift); keycode_lut[AKEYCODE_BUTTON_X] |= ((RETRO_DEVICE_ID_JOYPAD_B+1) << shift);
keycode_lut[AKEYCODE_BUTTON_A] |= ((RETRO_DEVICE_ID_JOYPAD_Y+1) << shift); keycode_lut[AKEYCODE_BUTTON_A] |= ((RETRO_DEVICE_ID_JOYPAD_Y+1) << shift);
} }