diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-06-28 18:10:20 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-06-28 18:10:20 +0000 |
| commit | 1c896ef18bef2114dfd5874b2af56c011f7729b1 (patch) | |
| tree | a91dafc2c65989a82ca9624536f26fe29585da7b /guess.c | |
| parent | ea172a046012b550d5d395b511b9d08aeb6ea66d (diff) | |
| download | puzzles-1c896ef18bef2114dfd5874b2af56c011f7729b1.zip puzzles-1c896ef18bef2114dfd5874b2af56c011f7729b1.tar.gz puzzles-1c896ef18bef2114dfd5874b2af56c011f7729b1.tar.bz2 puzzles-1c896ef18bef2114dfd5874b2af56c011f7729b1.tar.xz | |
Make peg removal accessible from the keyboard.
[originally from svn r6032]
Diffstat (limited to 'guess.c')
| -rw-r--r-- | guess.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -714,6 +714,10 @@ static char *interpret_move(game_state *from, game_ui *ui, game_drawstate *ds, set_peg(&from->params, ui, ui->peg_cur, ui->colour_cur+1); ret = ""; } + } else if (button == 'D' || button == 'd' || button == '\b') { + ui->display_cur = 1; + set_peg(&from->params, ui, ui->peg_cur, 0); + ret = ""; } else if (button == 'H' || button == 'h') { ui->display_cur = 1; ui->holds[ui->peg_cur] = 1 - ui->holds[ui->peg_cur]; |