From 535269f46c79be05d3a8bf22838ba3d3b5e7ea4d Mon Sep 17 00:00:00 2001 From: Lucas Lima Date: Fri, 6 Nov 2020 22:53:16 -0300 Subject: [PATCH] Enable chording on double click --- .../dev/lucasnlm/antimine/core/control/GameControl.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/dev/lucasnlm/antimine/core/control/GameControl.kt b/common/src/main/java/dev/lucasnlm/antimine/core/control/GameControl.kt index 25f192dc..63e4c6c4 100644 --- a/common/src/main/java/dev/lucasnlm/antimine/core/control/GameControl.kt +++ b/common/src/main/java/dev/lucasnlm/antimine/core/control/GameControl.kt @@ -77,9 +77,9 @@ sealed class GameControl( doubleClick = ActionResponse.OpenTile, ), onOpen = Actions( - singleClick = ActionResponse.HighlightNeighbors, + singleClick = ActionResponse.OpenNeighbors, longPress = null, - doubleClick = ActionResponse.OpenNeighbors, + doubleClick = ActionResponse.HighlightNeighbors, ) ) @@ -91,9 +91,9 @@ sealed class GameControl( doubleClick = ActionResponse.SwitchMark, ), onOpen = Actions( - singleClick = ActionResponse.HighlightNeighbors, + singleClick = ActionResponse.OpenNeighbors, longPress = null, - doubleClick = ActionResponse.OpenNeighbors, + doubleClick = ActionResponse.HighlightNeighbors, ) )