diff options
| author | Simon Tatham <anakin@pobox.com> | 2008-09-13 18:26:53 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2008-09-13 18:26:53 +0000 |
| commit | 5ead207060a3e1f74ad6200fdf02934457394bc2 (patch) | |
| tree | 453b3ebe7556d1a1222c0a1e23f190d6eb119893 /guess.c | |
| parent | fe1b91ac49cc2f4cd07801535dc19103a8ebeb70 (diff) | |
| download | puzzles-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |