chiark / gitweb /
Patch from James H to centralise some generally useful cursor-
[sgt-puzzles.git] / guess.c
diff --git a/guess.c b/guess.c
index 9117e8ef905b1b40785483769be273d02b666b96..e09a066490f625d1bc5f2d662b6b2a98bbc649ae 100644 (file)
--- 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);