Commit 4703eef
fix(android): Enable S-Pen hover cursor movement for RETRO_DEVICE_POINTER games
CRITICAL BUG FIX: S-Pen hover was only updating relative mouse coordinates
but not absolute pointer coordinates, causing games like Clock Tower to
not recognize hover cursor movement despite RetroArch setting being enabled.
Problem Analysis:
- Pure hover only called android_mouse_calculate_deltas() for mouse cursor
- Barrel+hover worked because side button path updates pointer coordinates
- Games using RETRO_DEVICE_POINTER need absolute coordinates, not just mouse deltas
Solution:
- Add missing video_driver_translate_coord_viewport_*() calls to hover path
- Maintain pointer_count to ensure RETRO_DEVICE_POINTER reports valid coordinates
- Now both RetroArch menu cursor AND libretro pointer games work with hover
NOTE: Requires hardware testing to confirm fix on Galaxy Z Fold 5 with S-Pen
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent fbe7e12 commit 4703eef
1 file changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
908 | 911 | | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
909 | 932 | | |
910 | | - | |
| 933 | + | |
911 | 934 | | |
912 | 935 | | |
913 | 936 | | |
| |||
0 commit comments