From 2e92640d2b85aa4426a09df2eb26adebe64b0890 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Tue, 10 Apr 2012 21:58:58 +0200 Subject: [PATCH] (PS3) Fixed analog controls --- ps3/ps3_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ps3/ps3_input.c b/ps3/ps3_input.c index 5a78db09a7..fa92fa6ca9 100644 --- a/ps3/ps3_input.c +++ b/ps3/ps3_input.c @@ -108,7 +108,7 @@ static int16_t ps3_input_state(void *data, const struct snes_keybind **binds, unsigned player = port; uint64_t button = binds[player][id].joykey; - int16_t retval = CTRL_MASK(state[player], button); + int16_t retval = CTRL_MASK(state[player], button) ? 1 : 0; if(player >= pads_connected || device != RETRO_DEVICE_JOYPAD) retval = 0;