Make the keyboard-control cursors visible whenever a keyboard control is

activated.

[originally from svn r6013]
This commit is contained in:
Jacob Nevins
2005-06-25 13:43:45 +00:00
parent a0d0c7e795
commit 185d999b6b

View File

@ -700,6 +700,7 @@ static game_state *make_move(game_state *from, game_ui *ui, game_drawstate *ds,
ret = from; ret = from;
} else if (button == CURSOR_SELECT || button == ' ' || button == '\r' || } else if (button == CURSOR_SELECT || button == ' ' || button == '\r' ||
button == '\n') { button == '\n') {
ui->display_cur = 1;
if (ui->peg_cur == from->params.npegs) { if (ui->peg_cur == from->params.npegs) {
ret = mark_move(from, ui); ret = mark_move(from, ui);
} else { } else {
@ -707,6 +708,7 @@ static game_state *make_move(game_state *from, game_ui *ui, game_drawstate *ds,
ret = from; ret = from;
} }
} else if (button == 'H' || button == 'h') { } else if (button == 'H' || button == 'h') {
ui->display_cur = 1;
ui->holds[ui->peg_cur] = 1 - ui->holds[ui->peg_cur]; ui->holds[ui->peg_cur] = 1 - ui->holds[ui->peg_cur];
ret = from; ret = from;
} }