mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 04:55:44 +00:00
Feat: Adds Screen zoom buttons in DD side menu (#3361)
This commit is contained in:
1 parent
e3ba2bc68d
commit
771f7cb8c3
76 files changed
+650
-13
No files matched your search
@@ -50,6 +50,8 @@ class InputProfilesTest {
|
||||
@Test fun bindingsAndDeviceKeysRoundTripWithoutAffectingOtherProfile() {
|
||||
val game = InputProfile.defaults(InputProfile.GAME)
|
||||
.withBinding(InputRole.SECONDARY, InputControl.A, InputAction.Keys(listOf(29, 30)))
|
||||
.withBinding(InputRole.PRIMARY, InputControl.Y, InputAction.Command(InputCommand.GAME_ZOOM_IN))
|
||||
.withBinding(InputRole.PRIMARY, InputControl.B, InputAction.Command(InputCommand.GAME_ZOOM_OUT))
|
||||
.copy(keys = listOf(PhysicalInputBinding(PhysicalInputKey("1:2:descriptor", "Thor", 131, 59), InputAction.Command(InputCommand.MENU))))
|
||||
InputProfiles.save(context, game)
|
||||
assertEquals(game, InputProfiles.read(context, InputProfile.GAME))
|
||||
|
||||
Reference in new issue
Block a user