diff options
author | phaseIV | 2015-11-17 10:46:43 +0100 |
---|---|---|
committer | phaseIV | 2015-11-17 10:46:43 +0100 |
commit | f730f194726374a7f9bccc030632635d5d4a8c83 (patch) | |
tree | 6698dadfef5d3c159baf19de7559afee78ac29a9 | |
parent | b1c2fa8ffcf66a37aa7e5bf2704689018c2fb533 (diff) | |
download | pcsx_rearmed-f730f194726374a7f9bccc030632635d5d4a8c83.tar.gz pcsx_rearmed-f730f194726374a7f9bccc030632635d5d4a8c83.tar.bz2 pcsx_rearmed-f730f194726374a7f9bccc030632635d5d4a8c83.zip |
fixed compile error and player2 support
-rw-r--r-- | frontend/libretro.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c index e73135b..aaeb624 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -1220,7 +1220,7 @@ static void update_variables(bool in_flight) void retro_run(void) { - int i; + int i, val; input_poll_cb(); @@ -1284,16 +1284,16 @@ void retro_run(void) if (in_type2 == PSE_PAD_TYPE_NEGCON) { /* left brake */ - if(input_state_cb(0, RETRO_DEVICE_JOYPAD, 0, 12)) + if(input_state_cb(1, RETRO_DEVICE_JOYPAD, 0, 12)) in_a3[1] = 255; else in_a3[1] = 0; /* steer */ - in_a4[0] = (input_state_cb(0, RETRO_DEVICE_ANALOG, RETRO_DEVICE_INDEX_ANALOG_RIGHT, RETRO_DEVICE_ID_ANALOG_X) / 256) + 128; + in_a4[0] = (input_state_cb(1, RETRO_DEVICE_ANALOG, RETRO_DEVICE_INDEX_ANALOG_RIGHT, RETRO_DEVICE_ID_ANALOG_X) / 256) + 128; /* thrust and fire */ - val = ((input_state_cb(0, RETRO_DEVICE_ANALOG, RETRO_DEVICE_INDEX_ANALOG_RIGHT, RETRO_DEVICE_ID_ANALOG_Y) / 127)); + val = ((input_state_cb(1, RETRO_DEVICE_ANALOG, RETRO_DEVICE_INDEX_ANALOG_RIGHT, RETRO_DEVICE_ID_ANALOG_Y) / 127)); if(val < -2) { in_a3[0] = 256 - val; } |