Session drawer: opens focused on its first control, and the controller drives it

With the drawer open the controller still fed the game - PadBridge
consumed every pad key and axis - and nothing in the drawer had focus.
Now, while it is open, pad events go to Android's own handling instead:
the d-pad and stick move focus, and the framework's fallbacks make A
select and B Back (which closes the drawer), as on the app's main
screen. Opening it releases the game's pad (PadBridge.releaseAll), so a
button or stick held at that moment is not left down in the game.

It opens with focus on the STEAM button (in a desktop session, the first
setting), and the STEAM and ... buttons show a focus outline like the
rest of the app's controls. ToggleRow gains a modifier for its box.
This commit is contained in:
The412Banner committed 2026-09-23 18:52:50 -04:00
1 parent ebf5da9840
commit 034d484271
4 files changed
+44 -4

No files matched your search

@@ -166,6 +166,15 @@ public final class PadBridge {
else publish();
}
/**
* Everything released and centred - for when the controller stops feeding the game (the
* session drawer opened), so a button or stick held at that moment is not left down in it.
*/
public synchronized void releaseAll() {
state.clear();
publish();
}
/** Starts the same Guide-then-A sequence used by the touch QAM button. */
public synchronized void triggerQam() {
startQamChord();