diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-06-23 22:01:17 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-06-23 22:01:17 +0000 |
| commit | fda72b0f1edeedb684bdd845b43d7bbed4607d26 (patch) | |
| tree | c9f1b238abf4b3a2b522936c5f5b3db91c4509d2 | |
| parent | 7199b4262380f2cb850c65231beffd7db74736ca (diff) | |
| download | puzzles-fda72b0f1edeedb684bdd845b43d7bbed4607d26.zip puzzles-fda72b0f1edeedb684bdd845b43d7bbed4607d26.tar.gz puzzles-fda72b0f1edeedb684bdd845b43d7bbed4607d26.tar.bz2 puzzles-fda72b0f1edeedb684bdd845b43d7bbed4607d26.tar.xz | |
Make the `hold marker' in Guess accessible from the keyboard (`H' key, for want
of a better idea).
[originally from svn r6004]
| -rw-r--r-- | guess.c | 3 | ||||
| -rw-r--r-- | puzzles.but | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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; } diff --git a/puzzles.but b/puzzles.but index 17d1003..42964ff 100644 --- a/puzzles.but +++ b/puzzles.but @@ -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 |