mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 01:21:03 +00:00
(PS3) Savestates hooked up (R2 + R3 - save state - L2 + R3 - load state -
R2 + Right stick right - save state plus - R2 + Right stick left - save state minus)
This commit is contained in:
parent
c5f86f12c0
commit
077acf7894
@ -112,12 +112,25 @@ static void* ps3_input_init(void)
|
|||||||
static bool ps3_key_pressed(void *data, int key)
|
static bool ps3_key_pressed(void *data, int key)
|
||||||
{
|
{
|
||||||
(void)data;
|
(void)data;
|
||||||
if (key == SSNES_FAST_FORWARD_HOLD_KEY)
|
switch(key)
|
||||||
return CTRL_RSTICK_UP(state[0]);
|
{
|
||||||
else if (key == SSNES_REWIND)
|
case SSNES_FAST_FORWARD_HOLD_KEY:
|
||||||
return CTRL_RSTICK_DOWN(state[0]);
|
return CTRL_RSTICK_UP(state[0]);
|
||||||
else
|
case SSNES_LOAD_STATE_KEY:
|
||||||
return false;
|
return (CTRL_L2(state[0]) && CTRL_R3(state[0]));
|
||||||
|
case SSNES_SAVE_STATE_KEY:
|
||||||
|
return (CTRL_R2(state[0]) && CTRL_R3(state[0]));
|
||||||
|
case SSNES_STATE_SLOT_PLUS:
|
||||||
|
return (CTRL_RSTICK_RIGHT(state[0]) && CTRL_R2(state[0]));
|
||||||
|
case SSNES_STATE_SLOT_MINUS:
|
||||||
|
return (CTRL_RSTICK_LEFT(state[0]) && CTRL_R2(state[0]));
|
||||||
|
case SSNES_REWIND:
|
||||||
|
return CTRL_RSTICK_DOWN(state[0]);
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const input_driver_t input_ps3 = {
|
const input_driver_t input_ps3 = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user