aboutsummaryrefslogtreecommitdiff
path: root/guess.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2008-09-13 18:26:53 +0000
committerSimon Tatham <anakin@pobox.com>2008-09-13 18:26:53 +0000
commit5ead207060a3e1f74ad6200fdf02934457394bc2 (patch)
tree453b3ebe7556d1a1222c0a1e23f190d6eb119893 /guess.c
parentfe1b91ac49cc2f4cd07801535dc19103a8ebeb70 (diff)
downloadpuzzles-5ead207060a3e1f74ad6200fdf02934457394bc2.zip
puzzles-5ead207060a3e1f74ad6200fdf02934457394bc2.tar.gz
puzzles-5ead207060a3e1f74ad6200fdf02934457394bc2.tar.bz2
puzzles-5ead207060a3e1f74ad6200fdf02934457394bc2.tar.xz
Patch from James H to centralise some generally useful cursor-
handling functionality into misc.c. [originally from svn r8176]
Diffstat (limited to 'guess.c')
-rw-r--r--guess.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/guess.c b/guess.c
index 9117e8e..e09a066 100644
--- a/guess.c
+++ b/guess.c
@@ -758,8 +758,7 @@ static char *interpret_move(game_state *from, game_ui *ui, game_drawstate *ds,
if (button == CURSOR_LEFT && ui->peg_cur > 0)
ui->peg_cur--;
ret = "";
- } else if (button == CURSOR_SELECT || button == ' ' || button == '\r' ||
- button == '\n') {
+ } else if (IS_CURSOR_SELECT(button)) {
ui->display_cur = 1;
if (ui->peg_cur == from->params.npegs) {
ret = encode_move(from, ui);