Skip to content

webOS: restore absolute mouse coords for menu/OSK hit-testing - #19277

Open
theromis wants to merge 1 commit into
libretro:masterfrom
theromis:fix/webos-osk-mouse-screen
Open

webOS: restore absolute mouse coords for menu/OSK hit-testing#19277
theromis wants to merge 1 commit into
libretro:masterfrom
theromis:fix/webos-osk-mouse-screen

Conversation

@theromis

Copy link
Copy Markdown
Contributor

Summary

  • #18432 made SDL mouse X/Y always relative on webOS so cores receive deltas.
  • Menu / OSK use RARCH_DEVICE_MOUSE_SCREEN and need absolute coordinates for key hit-testing, so Magic Remote pointer clicks on the OSK missed.
  • Keep relative for RETRO_DEVICE_MOUSE and absolute for MOUSE_SCREEN (same split as other input drivers).

Test plan

  • webOS: open OSK, move Magic Remote cursor over keys — highlight follows cursor
  • webOS: click a key with Magic Remote pointer — character is entered
  • webOS: mouse-using core (e.g. ScummVM) still gets relative mouse movement

libretro#18432 made SDL mouse X/Y always relative so cores get deltas, but the
menu reads RARCH_DEVICE_MOUSE_SCREEN and needs absolute position. Keep
relative for RETRO_DEVICE_MOUSE and absolute for MOUSE_SCREEN so Magic
Remote can click OSK keys again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant