From badb093da17186904490aa99fccd09fdf3925e79 Mon Sep 17 00:00:00 2001 From: jacob Date: Thu, 23 Jun 2005 22:01:17 +0000 Subject: [PATCH] Make the `hold marker' in Guess accessible from the keyboard (`H' key, for want of a better idea). git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6004 cda61777-01e9-0310-a592-d414129be87e --- guess.c | 3 +++ puzzles.but | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/guess.c b/guess.c index 3e5d120..3a53f4b 100644 --- a/guess.c +++ b/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; } 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 -- 2.11.0