From 06c3f56283b0e1cf24f1981be443ecc4838f557e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 17 Feb 2014 00:27:49 +0100 Subject: [PATCH] (PSP) Add analog code --- psp/psp_input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/psp/psp_input.c b/psp/psp_input.c index 72196f3f60..d4cef80f6c 100644 --- a/psp/psp_input.c +++ b/psp/psp_input.c @@ -120,6 +120,11 @@ static void psp_input_poll(void *data) psp->analog_state[0][RETRO_DEVICE_INDEX_ANALOG_RIGHT][RETRO_DEVICE_ID_ANALOG_Y] = (int16_t)(STATE_ANALOGRY(state_tmp)) * -256; #endif + for (int i = 0; i < 2; i++) + for (int j = 0; j < 2; j++) + if (psp->analog_state[0][i][j] == -0x8000) + psp->analog_state[0][i][j] = -0x7fff; + *lifecycle_state &= ~((1ULL << RARCH_MENU_TOGGLE)); if (