(PS3) Fixed analog controls

This commit is contained in:
Twinaphex 2012-04-10 21:58:58 +02:00
parent db00f689c8
commit 2e92640d2b

View File

@ -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;