Add second screen touchpad for dual-display Android devices#1
Open
InLineR495 wants to merge 1 commit into
Open
Add second screen touchpad for dual-display Android devices#1InLineR495 wants to merge 1 commit into
InLineR495 wants to merge 1 commit into
Conversation
Add touchpad support on secondary PRESENTATION displays for dual-screen Android devices (e.g. AYN Thor). Touch on the second screen controls the mouse cursor in ScummVM. Gestures: single finger drag for mouse movement, single tap for left click, two-finger tap for right click, two-finger drag for scroll wheel. Uses existing pushEvent() types (JE_MOUSE_MOVE, JE_LMB_DOWN/UP, JE_RMB_DOWN/UP, JE_MOUSE_WHEEL_UP/DOWN) with no native C++ changes. Toggle button in on-screen overlay, enabled by default when secondary display is detected. OLED-friendly black background on touchpad screen. Tested on AYN Thor (Snapdragon 8 Gen 2, Android 14, dual display 1080x1920 + 1080x1240). Assisted-by: Claude:claude-opus-4.6
2e27ad5 to
a99faf0
Compare
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
pushEvent()typesJE_MOUSE_MOVE,JE_LMB_DOWN/UP,JE_RMB_DOWN/UP,JE_MOUSE_WHEEL_UP/DOWNNew files
SecondScreenTouchpadView.java— touch-to-mouse translation with accelerationSecondScreenPresentation.java— AndroidPresentationwrapperSecondScreenManager.java— display detection, lifecycle, toggleSecondScreenHelper.java— integration bridge withActivityLifecycleCallbacksModified files
ScummVMActivity.java— field + init call + destroy cleanupscummvm_activity.xml— toggle button in overlay GridLayoutTest plan
Tested on AYN Thor (Snapdragon 8 Gen 2, Android 14, dual display: 1080×1920 + 1080×1240).
🤖 Generated with Claude Code