Repository navigation
Conversation
…tion
- Add XboxTarget.CURSOR_HOLD ('Hold for Cursor Mode', default L4), MOUSE_LEFT, and MOUSE_RIGHT targets
- Add CursorHoldConfigDialog accessible via the '...' button next to Hold for Cursor Mode:
- Toggle between System Mouse Cursor (uinput SOURCE_MOUSE) and Simulate Finger Touch (Shizuku IInputManager SOURCE_TOUCHSCREEN + floating TouchCursorOverlay reticle)
- Separate Cursor sensitivity (0.1x..5.0x) and Scroll speed (0.1x..5.0x) sliders
- Multi-select Click/Confirm button bindings (default A + RT)
- Hide system mouse cursor immediately on modifier release by destroying/recreating the sidecar uinput mouse device
- Support Right Stick touch-swipe scrolling in Touch Simulation mode, returning the cursor to the scroll start position on release
- Persist settings across NamedProfile and BackupManager
feat(input): add Hold for Cursor Mode with mouse & touchscreen simulation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Hold for Cursor Mode (
XboxTarget.CURSOR_HOLD, mapped to L4 by default) so users can hold a modifier button during gameplay to seamlessly control an on-screen pointer or simulate finger touch without leaving their gamepad profile.Features
...Button):uinputmouse device (SOURCE_MOUSE) and destroysg_fd_mouseas soon as the hold button is released so Android immediately hides the pointer.TouchCursorOverlay) while held, injects realSOURCE_TOUCHSCREEN(TOOL_TYPE_FINGER)ACTION_DOWN/ACTION_MOVE/ACTION_UPevents via ShizukuIInputManager, and performs continuous touch-swipe scrolling with the Right Stick (snapping the cursor back to the scroll origin upon release).0.1x - 5.0x) and Scroll speed (0.1x - 5.0x) settings (also raised trackpad mouse sensitivity max to5.0x).A+RT) to act as Left Click / Touch Tap-and-Drag while the cursor modifier is held.NamedProfileand included in JSON backups (BackupManager).License
I hereby submit and license this contribution under the MIT License.