mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
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:
parent
14c9806584
commit
3a0468523a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user