mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
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.
This commit is contained in:
@ -1289,9 +1289,8 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
|||||||
int tx, ty;
|
int tx, ty;
|
||||||
char *ret = MOVE_UI_UPDATE;
|
char *ret = MOVE_UI_UPDATE;
|
||||||
|
|
||||||
ui->displaysel = false;
|
|
||||||
|
|
||||||
if (button == RIGHT_BUTTON || button == LEFT_BUTTON) {
|
if (button == RIGHT_BUTTON || button == LEFT_BUTTON) {
|
||||||
|
ui->displaysel = false;
|
||||||
tx = FROMCOORD(x); ty= FROMCOORD(y);
|
tx = FROMCOORD(x); ty= FROMCOORD(y);
|
||||||
} else if (IS_CURSOR_MOVE(button)) {
|
} else if (IS_CURSOR_MOVE(button)) {
|
||||||
int dx = 0, dy = 0;
|
int dx = 0, dy = 0;
|
||||||
|
Reference in New Issue
Block a user