From ef6fb9b8553af733f59c0da6ae309824040a950e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 8 Aug 2016 01:24:54 +0200 Subject: [PATCH] (Vita) Fix --- input/drivers_joypad/psp_joypad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/drivers_joypad/psp_joypad.c b/input/drivers_joypad/psp_joypad.c index 643d8d28b3..4823af486e 100644 --- a/input/drivers_joypad/psp_joypad.c +++ b/input/drivers_joypad/psp_joypad.c @@ -143,7 +143,7 @@ static void psp_joypad_poll(void) * can be 0 or 1 to read the first controller on * a PSTV, but HAS to be 0 for a real VITA and 2 * for the 2nd controller on a PSTV */ - unsigned p = (p == 1) ? 2 : i; + unsigned p = (player == 1) ? 2 : player; int32_t ret = CtrlPeekBufferPositive(p, &state_tmp, 1); #ifdef HAVE_KERNEL_PRX