chiark / gitweb /
Make Unruly's keyboard controls match the documentation and other puzzles in
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 10 Mar 2013 12:49:06 +0000 (12:49 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 10 Mar 2013 12:49:06 +0000 (12:49 +0000)
the collection -- now Enter = black and Space = white.

[originally from svn r9770]

unruly.c

index 3383b5fb11dc2d35837f4d6e304c280057cd149b..d2ea9aaf644118cfd109a33a53d899ad7477c473 100644 (file)
--- a/unruly.c
+++ b/unruly.c
@@ -1362,9 +1362,9 @@ static char *interpret_move(game_state *state, game_ui *ui,
             c = '-';
 
         /* Cycle through options */
-        else if (button == CURSOR_SELECT || button == RIGHT_BUTTON)
+        else if (button == CURSOR_SELECT2 || button == RIGHT_BUTTON)
             c = (i == EMPTY ? '0' : i == N_ZERO ? '1' : '-');
-        else if (button == CURSOR_SELECT2 || button == LEFT_BUTTON)
+        else if (button == CURSOR_SELECT || button == LEFT_BUTTON)
             c = (i == EMPTY ? '1' : i == N_ONE ? '0' : '-');
 
         if (state->grid[hy * w2 + hx] ==