aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Nevins <jacobn@chiark.greenend.org.uk>2013-03-10 12:49:06 +0000
committerJacob Nevins <jacobn@chiark.greenend.org.uk>2013-03-10 12:49:06 +0000
commit9dcba6a8cfe48da21df47f32e43aad10b8f52dae (patch)
treefc2357a4036377e3e36b8fad92ee3cd76ab825e7
parent0d62b4a688bb105fa951d0d7c309a055eeb35893 (diff)
downloadpuzzles-9dcba6a8cfe48da21df47f32e43aad10b8f52dae.zip
puzzles-9dcba6a8cfe48da21df47f32e43aad10b8f52dae.tar.gz
puzzles-9dcba6a8cfe48da21df47f32e43aad10b8f52dae.tar.bz2
puzzles-9dcba6a8cfe48da21df47f32e43aad10b8f52dae.tar.xz
Make Unruly's keyboard controls match the documentation and other puzzles in
the collection -- now Enter = black and Space = white. [originally from svn r9770]
-rw-r--r--unruly.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unruly.c b/unruly.c
index 3383b5f..d2ea9aa 100644
--- 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] ==