Feat: Adds Screen zoom buttons in DD side menu (#3361)

This commit is contained in:
LunaDL authored and GitHub committed 2026-11-28 22:00:48 -05:00
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))