mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Make the hold marker' in Guess accessible from the keyboard (
H' key, for want
of a better idea). [originally from svn r6004]
This commit is contained in:
3
guess.c
3
guess.c
@ -684,6 +684,9 @@ static game_state *make_move(game_state *from, game_ui *ui, game_drawstate *ds,
|
||||
set_peg(&from->params, ui, ui->peg_cur, ui->colour_cur+1);
|
||||
ret = from;
|
||||
}
|
||||
} else if (button == 'H' || button == 'h') {
|
||||
ui->holds[ui->peg_cur] = 1 - ui->holds[ui->peg_cur];
|
||||
ret = from;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -1076,7 +1076,7 @@ after marking.
|
||||
Alternatively, with the keyboard, the up and down cursor keys can be
|
||||
used to select a peg colour, the left and right keys to select a
|
||||
peg position, and the space bar to place a peg of the selected colour
|
||||
in the chosen position.
|
||||
in the chosen position. \q{H} adds a hold marker.
|
||||
|
||||
When the guess is complete, the feedback pegs will be highlighted;
|
||||
clicking on these (or moving the peg cursor to them with the arrow keys
|
||||
|
Reference in New Issue
Block a user