Fix RETRO_DEVICE_ID_POINTER_PRESSED handling

== DETAILS

The joypad driver was only copying the first 16 bits when executing
get_buttons(). The touchpad button is bit 19, so as a result
RETRO_DEVICE_ID_POINTER_PRESSED would never fire.

We fix this for now by copying 32 bits.

== TESTING

Will need someone to verify. I don't  have a core handy that leverages
the pointer device state functionality.
This commit is contained in:
gblues 2018-01-04 22:13:30 -08:00
parent 14c9806584
commit 3a0468523a

View File

@ -211,7 +211,7 @@ static void wpad_get_buttons(unsigned pad, retro_bits_t *state)
if(!wpad_query_pad(pad))
BIT256_CLEAR_ALL_PTR(state);
else
BITS_COPY16_PTR(state, button_state);
BITS_COPY32_PTR(state, button_state);
}
static int16_t wpad_axis(unsigned pad, uint32_t axis)