mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
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.
This commit is contained in:
2
guess.c
2
guess.c
@ -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);
|
||||
|
Reference in New Issue
Block a user