Add support for "none" controller mode: unplug virtual joystick and allow alternative controllers

This commit is contained in:
iChris4 committed 2026-09-26 21:53:48 +02:00
1 parent 171702bef4
commit c536f0087d
12 files changed
+212 -120

No files matched your search

+5 -1
View File
@@ -259,8 +259,12 @@ void TestButtons() {
right = {};
left.primary = true;
Check(RemoteButtons(left, right) == kButtonPlus, "left X is +, and nothing presses -");
left = {};
left.menu = true;
Check(RemoteButtons(left, right) == (kButtonMinus | kButtonPlus), "left X and menu are - and +");
Check(RemoteButtons(left, right) == kButtonPlus, "left menu is + too");
left.primary = true;
Check(RemoteButtons(left, right) == kButtonPlus, "left X and menu together are one +");
left = {};
left.trigger = 0.7f;
Check(RemoteButtons(left, right) == kButtonZ, "left trigger is Z");