## Changes
- Add vertical page scrolling using the controller's right stick.
> Reuse existing right stick axis detection for better controller
compatibility.
> Convert stick movement into scroll events for Compose scrollable
components.
> Add a dead zone threshold and rate limiting to prevent unintended
scrolling.
## Compatibility
- Supports controllers with different right stick axis layouts.
- Scroll behavior depends on the page's handling of scroll events.
Suggest by _corcse on discord
UwU
* Open the session menu on the first back tap instead of after the double-tap window
* Hold the GPU clock up while a session panel is open over the game
* Keep the double back tap working after the first tap opens the menu
The first tap opens the menu at once, and opening the menu cleared the
pending tap, so a second tap closed the menu instead of opening Steam's
quick menu. The tap that opened the menu now keeps its window, and a
second back press inside it goes to the double-tap action.
Outside Steam both taps toggle the menu, so a double tap no longer opens
and then closes it.
* fix(session): drop pending back taps on focus loss and departure
* fix(session): drop pending back taps when the drawer closes or another panel opens
* fix(session): drop the quick-menu input's pending tap when the drawer closes
* fix(session): keep a back press already down when the drawer closes
* fix(input): a captured touchpad drives the pointer
Android reports a captured touchpad's events as SOURCE_TOUCHPAD with the
finger positions on the pad and the movement in AXIS_RELATIVE_X/Y. The
capture handler only accepted SOURCE_MOUSE_RELATIVE, so every captured
touchpad event was dropped and the touchpad stopped working in a session.
Read the relative axes for a captured touchpad, and count a touchpad as
an attached pointer for the Auto relative mouse choice and for pointer
capture. A touchpad that declares SOURCE_TOUCHPAD is not captured for the
whole session, so Android keeps its cursor and gestures until a game holds
the pointer.
* fix(input): keep captured touchpad motion without relative axes
Some builds do not provide AXIS_RELATIVE_X/Y for a captured touchpad
(the AOSP include_relative_axis_values_for_captured_touchpads flag can
leave them out). Fall back to the movement between the pointer's
successive absolute positions, tracked per pointer id, and clear the
positions when capture changes or the pointer ends.
* fix(input): key captured touchpad positions by device too
A pointer id is only unique within its device, so the fallback positions
could collide between two touchpads or a replaced device. Key them by
device id and pointer id, and cover it with a test.
* fix(input): end only the touchpad that lifted
ACTION_UP and ACTION_CANCEL cleared every device's fallback positions.
Forget only the device that ended, so a second touchpad keeps its
baseline; a capture change still resets all of them.
* Give a captured touchpad taps, two-finger scroll and clickpad presses
* Keep captured touchpad clicks apart from mouse buttons
A tap's synthetic release shared the mouse's held-button owner, so it
could release a mouse button that was still held. Captured touchpad
presses now use their own owner, released when capture ends. A physical
pad press also keeps a later second finger from turning into a
right-click tap.
* Keep physical touchpad buttons on the mouse owner
A press made before capture was released under the captured owner and
stayed held. Physical buttons now always use the mouse owner, and only
gesture clicks use the touchpad owner. A physical press also releases a
pending tap click first, so the two never merge.
---------
Co-authored-by: maxjivi05 <maxjividen@gmail.com>
* fix(input): hold to right-click is the default for direct touch again
* Cancel a pending direct-touch hold when the window loses focus
* Cancel two-finger gestures when the window loses focus
* Focus loss cancels touch gestures through the shared helper
* perf(input): controller readers wake when input lands instead of polling
* fix(input): an idle controller read stays a cancellation point
* Keep the cancellation point out of builds without thread cancellation
A direct touch is forwarded on touch-down by default instead of on release; the saved long-press right click behaviour is unchanged for users who chose it. Short taps keep a 50 ms minimum press.
* docs: bottom screen research and proposals
* docs: expand bottom screen region mirror, guides and companion API
* feat(bottom): idle home card, per-game panel memory, Steam achievements tab and screen off
* feat(bottom): quick tiles page on the dashboard
* feat(bottom): Steam guides tab with per-game reading position
* feat(bottom): companion page with Stardew, Skyrim and Fallout 4 adapters
* docs: bottom screen implementation status
* feat(bottom): mirror a region of the game picture on the bottom screen
* fix(bottom): follow Steam's selection for any game, composite while mirroring
* docs: bottom screen hardware results and screenshots
* feat(bottom): guides wiki, fixes, maps and saved pages; hide mirrored region on top
* feat(bottom): guides, mirror and companion as their own panels in the app's settings style
* feat(bottom): Steam's Quick Access menu as a bottom screen panel
* fix(bottom): park Steam's Quick Access through its own bounds and keep it open on a lease
* feat(bottom): align Quick Access left, centre or right; keep its tab and Decky working
* fix(bottom): quieter Quick Access move handles, instant reopen, Decky tab after a cold start
* fix(bottom): lay Quick Access out at the panel's shape so every tab keeps one size
* feat(bottom): Quick Access tabs fill the bottom screen
* fix(bottom): the Quick Access button still opens the menu on the top screen
* feat(bottom): choose Quick Access layout from the bar: full width, left, center or right
* feat(bottom): brightness slider for the bottom screen with screen off at its end
* feat(bottom): game art panel, hideable bar with a pull tab, direct guide links, centred guide tabs
* fix(bottom): mirror fills the panel, options open from the bar
* docs: drop the removed dashboard row screenshot
* refactor(bottom): split the companion panel into its own change
* fix(bottom): Steam dialogs take input over the parked Quick Access menu; review fixes
* fix(bottom): extract the Quick Access relay at session start; second review round
* fix(bottom): game art refreshes details for the same game
* fix(bottom): Quick Access retries back off; art never shows another game for the running one
* fix(bottom): Quick Access keeps its lease through retry backoff
* fix(bottom): renew the Quick Access lease apart from discovery
* fix(bottom): a Quick Access panel releases only its own lease
* fix(bottom): an older Quick Access panel cannot take back a newer panel's lease
* test(bottom): an expired Quick Access lease can be taken by any panel
* fix(bottom): only the Quick Access lease owner sets the menu's shape
Xbox cloud
- Audio: WebRTC's JavaAudioDeviceModule defaults to voice-call audio
(mono, speaker/earpiece only), so HDMI, USB and Bluetooth stayed silent.
Use USAGE_GAME + CONTENT_TYPE_MOVIE and stereo output. From Bannerlator
eac4a3bb (same WebRTC 125.6422.07), proven there over HDMI.
- Library: GET /v2/titles marks every title the account may play
(details.hasEntitlement or isFreeInStore, as Greenlight's xcloud.ts by
UnknownSKL, MIT); those not in the PC list are added (gamepass when on
the Game Pass cloud list, else owned). Catalog in batches of 25, up to 4
at a time, mapped per batch. One card per title: cloud-only editions
fold into the PC card (owned when the cloud edition is owned), same-title
cloud-only editions become one card (matched on every Unicode letter
and digit, so non-Latin titles stay apart). Without the Game Pass
lists no cloud titles are added. On one account: All 459 -> 677,
Owned 9 -> 53, Game Pass 450 -> 624, Cloud 325 -> 569.
- Players: when the title list lacks the product, look it up by product id
(POST /v2/titles with alternateIds, as Better xCloud's getTitleInfo by
redphx, MIT), then by the game's name against the list.
- Launch art: both players show the game's art as a slow slideshow with the
title until the first video frame (store-images hosts only, up to 12).
Native: XboxNativeVideo.onFirstFrame, plus 6 s after connect for
zero-copy. Web: a script waits for the video element's first decoded
frame (or 6 s) and calls DDCloud.firstFrame().
- Cancel: until the first frame, B or Back, or a tap on the B Cancel
button (button role + accessibility action, not focusable), closes the
player and ends the session; afterwards B and Back
work as before. A session started after the player closed is stopped
right away.
From Even Better Xcloud (BannerCloud) ef61b2b, fc68d26, a4d2d1e, 559e17b,
7ec2a75 (the web-player launch art is new).
Chip names
- The AYANEO Pocket FIT (SG8350P, pineapple) showed "Snapdragon 8 Gen 3
family" and the Retroid Pocket Duo (CQ7790S, sun) "Snapdragon 8 Elite
family". Add SG8350P (Snapdragon G3 Gen 3), CQ7790S (Dragonwing Q-7790),
SM8635, SM8735, SM7675 and platform canoe; use the platform family only
for an empty model or an "SM" phone part. Model matching stays exact.
From Bannerlator 59c49bfa (without its suffix stripping and Galaxy
naming). plainName (#3231) now names the Duo's chip too; its test uses
an unknown model for the maker + model fallback.
Input
- Xiaomi's system uinput device "ui-input-xiaomi" reports gamepad sources
and could take a player slot. From Bannerlator fbe0233e, ported there
from Winlator Ludashi e104c8d3 by StevenMXZ (GPL-3.0).
* feat(launcher): LT and RT step between the main tabs from anywhere in the launcher
LT and RT move to the previous and next main tab on every layout. The activity handles them before any page sees the key, so a focused control, an embedded Android view such as the terminal, or nothing being focused no longer swallows them; dialogs and popups keep their own keys. Pads that report the triggers only as axes, like the Xbox Wireless Controller, get an L2/R2 press when a trigger passes 60% of its travel; pads that send their own trigger keys are left alone.
* fix(launcher): trigger tab steps tick, drop a pending press on focus loss, and move once per pull
Controller haptics now ticks for L2 and R2. A synthetic trigger press waiting its 40 ms is cancelled when the launcher loses window focus or is destroyed, so a dialog that opens in between keeps the page behind it. Each pull is tracked: when a synthetic press has gone out, the pad's own trigger key for the same pull is swallowed instead of stepping a second tab.
* fix(input): controls edited in portrait keep their places in the panel below the game
The panel below the game in portrait always regenerated the stock
layout, so positions saved from the Controls editor were dropped and
only the button styling carried over. The panel now orients to the
portrait frame and fits the edited controls into the panel at their
saved proportions; untouched stock layouts keep the generated panel.
* Keep the Deck panel's trackpads and fitted sizes for edited portrait controls
* fix(input): move and resize the D-pad as one control, per-control button size and sizes above 100%
* fix(input): controller art for copied layouts, keep the minimum size when shrinking the D-pad
Copies and per-game versions of the on-screen gamepad now draw the same controller art and placement as the original, and resizing the D-pad from a corner or the per-control slider keeps every arrow at a usable size.
* Keep other controls' moves when undoing a repeated resize
* feat(input): restore controller-specific overlay designs
* fix(input): restore portrait controller layouts
* fix(input): fix duplicates, rotation and tablet placement in the controller overlays
- Hide the below-game controls while the layout editor is open, and give the
editor the same cutout insets and optional Steam controls as the game view,
so the editor never shows a second copy of a control.
- Keep a separate portrait frame for layouts edited in portrait. A layout
edited in one orientation keeps the stock kit positions in the other instead
of being stretched across.
- Anchor the overlay to the bottom of the screen and cap the portrait panel's
physical size, so tablets keep the controls in the lower half.
- Put L2/L1 and R1/R2 side by side in every kit.
- List deleted stock controls in the editor's Add dialog so they can be
restored, and keep removed rear buttons and trackpads removed.
* fix(input): scale edited overlay layouts around the controller artwork positions
* fix(input): keep stock landscape controls, color setting, keyboard action and displayed frame edits consistent
* fix(input): draw the layout editor with the kit artwork at the size it will be saved
The editor placed its controls in onSizeChanged, which runs during layout, so
the preview canvas was rebuilt or remeasured too late: new controls were laid
out at 0x0 and existing ones kept stale sizes, losing the kit D-pad artwork.
Placement now happens in onMeasure, before the canvas measures its children.
The editor preview used the saved button size instead of the slider value, so
the slider showed a different layout from the one Done saved.
D-pad pieces that joined or left the kit cross were never redrawn, so moving
one piece hid all four.
* fix(input): keep portrait rear buttons and trackpads where they were saved
A portrait save stores the rear buttons and trackpads only in the rotated
frame, but loading that frame only moved controls that already existed in the
main frame, so they were regenerated at the screen edges.
* fix(input): adopt the displayed portrait frame for layouts edited only in landscape
Button size and reset positions now switch to the frame on screen whenever the edited layout's
orientation differs from the editor, not only when a rotated frame exists, so a portrait change
is saved as the portrait frame instead of overwriting the landscape edits. The tools panel stays
open while that happens.
* fix(input): keep a separate button size for the rotated frame
* fix(input): take the shown frame's button size whenever editing switches orientation
---------
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
* feat(input): restyle Steam Deck buttons
* feat(input): add Steam overlay options
* fix(input): align floating overlay previews
* fix(input): polish floating Steam trackpads
* fix(input): restore overlay options on startup
* fix(input): restore original Steam Deck artwork
* fix(input): restore Steam Deck overlay geometry
* fix(input): keep the Steam Deck shortcut row apart on small screens
The Steam pill sits right of the keyboard by a density-based margin while
Select and Start sit at unit-scaled offsets from the middle, so on a small,
dense surface (800x450 at xxxhdpi) the Steam pill covered Select. Lay out
Steam, Select, Start and Quick Access left to right with an 8 dp gap.
* fix(input): fit the Steam Deck shortcut row inside the safe area
Clamping each pill on its own after spacing could move Quick Access back
onto Start when a cutout inset narrows the right side. Fit the keyboard,
Steam, Select, Start and Quick Access as one row: push each right past its
neighbour, pull the row back inside the right edge, and shrink the 8 dp gap
only when the row would not fit otherwise.
---------
Co-authored-by: K11MCH1 <81425424+K11MCH1@users.noreply.github.com>
Choosing a layout from the layout menu took the first actions saved for it.
Desktop and Steam mode both draw the stock Gamepad, and Desktop's actions
(stick moves the pointer, face buttons click and press Enter and Esc,
D-pad sends arrow keys) could come first, so Steam mode's on-screen pad
became a mouse and keyboard. A choice now takes the mode's own actions,
or any the other mode doesn't use, and a Steam-mode selection already
holding Desktop's actions is dropped on upgrade.
* fix(input): saved layouts keep their shape on a rotated screen, sticks aren't cut off and old gamepads are kept
- A layout shown on a screen much taller or wider than it was saved for is
placed as one block (at the bottom in portrait) instead of anchoring each
control by its own third, which tore clusters such as the face buttons apart
in portrait and in the editor.
- A floating stick's base is drawn whole inside the overlay when the thumb
lands near an edge; input still centres on the touch.
- The migration that makes old-editor gamepads follow the kit again also keeps
a copy of each one that had kit positions, as "<name> (old layout)" with its
actions, so players can choose their old layout again.
* fix(input): the old-layout copy keeps only actions it can use, fits the library's limits and leaves same-orientation screens alone
- Actions for kit buttons the old gamepad never placed stay on the kit-following
gamepad and are dropped from the copy, which otherwise failed validation and
stopped the library from loading.
- When the copy and its actions don't fit the layout, action or saved-size
limits, the gamepad keeps its own positions instead.
- Block placement only applies when the screen and the layout differ in
orientation; a 4:3 layout on a wide landscape screen keeps edge anchoring.
The Steam kits keep their Steam and Quick Access buttons on the bottom row,
and Start and Select moved there too, but the Xbox kit's Guide button still
sat at the top centre of the screen and the PlayStation kits' PS button over
the middle of the game. Both now sit between Select and Start, where the real
pads have them, centred on the safe area like Select and Start.
* feat(input): describe on-screen layout choices, scope per-game layouts and delete unused ones
- The layout menu says what each choice is: "DroidDeck controls" work in
every game and are edited here; "Steam touch controls" are each game's
controls from Steam, for Steam games only.
- Layouts made with "+ New for <game>" (or "Just this game") are listed
only for that game, marked "Just for <game>". Older ones are recognised
by carrying the name of the game that draws them.
- Saved layouts nothing uses get a delete button in the menu. Deleting one
also removes a profile that still uses it but can no longer be chosen,
such as copies made by the old profile screen.
- A game set to Steam touch controls that runs without Steam shows a note
under Layout instead of silently using the default.
* fix(input): a layout the built-in profile still lists can be deleted once another is chosen
Applying a layout used to write it into the Game profile; choosing another
now goes on top, so the profile's part is no longer drawn. Only parts a mode
actually draws count as in use, and deleting points the built-in profile
back at the stock layout.