emscripten: only report back one screen pointer for rwebinput

fixes lockup when clicking on an overlay
This commit is contained in:
Toad King 2021-02-15 15:07:25 -06:00
parent ef4d9b88bf
commit c29241ec9e

View File

@ -515,6 +515,7 @@ static int16_t rwebinput_input_state(
device == RARCH_DEVICE_MOUSE_SCREEN);
case RETRO_DEVICE_POINTER:
case RARCH_DEVICE_POINTER_SCREEN:
if (idx == 0)
{
struct video_viewport vp;
rwebinput_mouse_state_t