Bind libretro mouse button 4&5 to Saturn mouse start button.

This commit is contained in:
David Walters 2017-11-17 10:02:55 +00:00
parent 599854ee34
commit 3e3fa4134e

View File

@ -451,7 +451,9 @@ void input_update( retro_input_state_t input_state_cb )
p_input->u8[0x8] |= ( 1 << 2 ); // C
}
if ( input_state_cb( iplayer, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_START ) ) {
if ( input_state_cb( iplayer, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_START ) ||
input_state_cb( iplayer, RETRO_DEVICE_MOUSE, 0, RETRO_DEVICE_ID_MOUSE_BUTTON_4 ) ||
input_state_cb( iplayer, RETRO_DEVICE_MOUSE, 0, RETRO_DEVICE_ID_MOUSE_BUTTON_5 ) ) {
p_input->u8[0x8] |= ( 1 << 3 ); // Start
}