diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-05 23:16:04 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-05 23:25:27 +0000 |
| commit | 9afdd4cca4823fa3b27ad2ca2fec33e04d7ab103 (patch) | |
| tree | 01bbca29b03203aa3bd72d4369f2c887318c53e3 /guess.c | |
| parent | ea223a23503c80759d5579626285eda0e617d6b4 (diff) | |
| download | puzzles-9afdd4cca4823fa3b27ad2ca2fec33e04d7ab103.zip puzzles-9afdd4cca4823fa3b27ad2ca2fec33e04d7ab103.tar.gz puzzles-9afdd4cca4823fa3b27ad2ca2fec33e04d7ab103.tar.bz2 puzzles-9afdd4cca4823fa3b27ad2ca2fec33e04d7ab103.tar.xz | |
guess: Fix keyboard access to hold function
This has been broken since 2015. It was accidentally using
"IS_CURSOR_SELECT(button)" in place of "button == CURSOR_SELECT" and
these are not the same thing.
Diffstat (limited to 'guess.c')
| -rw-r--r-- | guess.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -892,7 +892,7 @@ static char *interpret_move(const game_state *from, game_ui *ui, if (button == CURSOR_LEFT && ui->peg_cur > 0) ui->peg_cur--; ret = UI_UPDATE; - } else if (IS_CURSOR_SELECT(button)) { + } else if (button == CURSOR_SELECT) { ui->display_cur = true; if (ui->peg_cur == from->params.npegs) { ret = encode_move(from, ui); |