diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-07-31 23:02:45 +0100 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-07-31 23:02:45 +0100 |
| commit | ecb3a9d6f219e95c694d7857f579c9ef2ebad064 (patch) | |
| tree | fc25b1d1d8c1b602aea5382b40224962f42c4a65 | |
| parent | 56237fa5fa0c2c56785f3667cb7d013dc9779352 (diff) | |
| download | puzzles-ecb3a9d6f219e95c694d7857f579c9ef2ebad064.zip puzzles-ecb3a9d6f219e95c694d7857f579c9ef2ebad064.tar.gz puzzles-ecb3a9d6f219e95c694d7857f579c9ef2ebad064.tar.bz2 puzzles-ecb3a9d6f219e95c694d7857f579c9ef2ebad064.tar.xz | |
Same Game: don't hide keyboard cursor on unrecognised keys
Pressing "undo", for instance, should leave the keyboard cursor
visible if it's visible already. Only mouse clicks should hide it.
| -rw-r--r-- | samegame.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1289,9 +1289,8 @@ static char *interpret_move(const game_state *state, game_ui *ui, int tx, ty; char *ret = MOVE_UI_UPDATE; - ui->displaysel = false; - if (button == RIGHT_BUTTON || button == LEFT_BUTTON) { + ui->displaysel = false; tx = FROMCOORD(x); ty= FROMCOORD(y); } else if (IS_CURSOR_MOVE(button)) { int dx = 0, dy = 0; |