add Steam Deck L/R touchpad support#500
add Steam Deck L/R touchpad support#500GloriousEggroll wants to merge 1 commit intoShadowBlip:mainfrom
Conversation
this allows proper LeftPad and RightPad touchpad definitions for steam deck and enables touchpad for deck and deck-uhid. fixes ShadowBlip#476
| gyro_events.append(capability) | ||
| continue | ||
| if capability.begins_with("TouchPad:"): | ||
| if capability.begins_with("Touchpad:") or capability.begins_with("TouchPad:"): |
There was a problem hiding this comment.
oof, we should fix that in InputPlumber...
| var target_devices := PackedStringArray([target_gamepad, "keyboard", "mouse"]) | ||
| match target_gamepad: | ||
| "xb360", "xbox-series", "xbox-elite", "gamepad", "hori-steam": | ||
| "xb360", "xbox-series", "xbox-elite", "gamepad", "hori-steam", "deck", "deck-uhid": |
There was a problem hiding this comment.
Hmm, the deck's build in touchpads should work as touchpads within steam and on the desktop when steam is running. What problem is this solving?
There was a problem hiding this comment.
thats the problem. if we just pass through the touchpad motions we get both sides acting as touchpads instead of how they are supposed to behave in the inputplumber driver, BUT since touchpad target is never passed through, they do nothing:
Expected from steam:
When inputplumber is running and deck or deck-uhid is NOT being used, we get SteamOS behavior. which is leftpad dpad right pad nothing.
Current problem:
When inputplumber is running and deck or deck-uhid IS being used, we're currently just passing the touchpad
motions through, which means both of them act like mouse touchpads, HOWEVER because ogui doesnt pass touchpad as a target device, neither touchpad works.
This fix:
When inputplumber is running and deck or deck-uhid IS being used, we pass both devices through as touchpad motion, and use our driver to map the left as a dpad, this is enhanced better than SteamOS because we also get right pad as a touchpad instead of nothing.
this allows proper LeftPad and RightPad touchpad definitions for steam deck and enables touchpad for deck and deck-uhid.
this is only the leftpad/rightpad profile support side.
requires ShadowBlip/InputPlumber#493 in inputplumber for steamos l/r pad input mapping
partially fixes #476, needs gui frontend extension.