Skip to content

Commit

Permalink
fix for wiiu build (libretro#5826)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenasbestos authored and bparker06 committed Nov 29, 2017
1 parent cc2080c commit 5f09567
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion input/drivers/wiiu_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ static int16_t wiiu_pointer_device_state(wiiu_input_t* wiiu, unsigned id)
switch (id)
{
case RETRO_DEVICE_ID_POINTER_PRESSED:
return (wiiu->joypad->get_buttons(0) & VPAD_BUTTON_TOUCH) ? 1 : 0;
{
retro_bits_t state;
wiiu->joypad->get_buttons(0,&state);
return RARCH_INPUT_STATE_BIT_GET(state, VPAD_BUTTON_TOUCH) ? 1 : 0;
}
case RETRO_DEVICE_ID_POINTER_X:
return wiiu->joypad->axis(0, 0xFFFF0004UL);
case RETRO_DEVICE_ID_POINTER_Y:
Expand Down

0 comments on commit 5f09567

Please sign in to comment.