From 9afdd4cca4823fa3b27ad2ca2fec33e04d7ab103 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 5 Dec 2022 23:16:04 +0000 Subject: [PATCH] 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. --- guess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guess.c b/guess.c index 4784db3..ba04a9e 100644 --- a/guess.c +++ b/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);