mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-04 13:03:34 -05:00
Fix the QAM button doing nothing when the pad is an Xbox or PlayStation controller (#631)
This commit is contained in:
1 parent
513ae84612
commit
0b133a2ed5
2 files changed
+24
-5
No files matched your search
@@ -566,6 +566,16 @@ public class FakeInputWriter {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the pad, as the Steam client now sees it, has a Quick Access button: a Deck's or a
|
||||
* Steam Controller's does, an Xbox or PlayStation pad's does not (libfakeinput drops the bit).
|
||||
* Unset is the Deck, libfakeinput's default.
|
||||
*/
|
||||
public static boolean padHasQam() {
|
||||
int type = padType;
|
||||
return type < 0 || type == PAD_TYPE_DECK || type == PAD_TYPE_STEAM;
|
||||
}
|
||||
|
||||
/**
|
||||
* Switches what the pad is to the Steam client while the session runs ([PAD_TYPE_DECK],
|
||||
* [PAD_TYPE_STEAM] or [PAD_TYPE_XBOX]); libfakeinput unplugs the old device and plugs in the new.
|
||||
|
||||
Reference in new issue
Block a user