Make peg removal accessible from the keyboard.

[originally from svn r6032]
This commit is contained in:
Jacob Nevins
2005-06-28 18:10:20 +00:00
parent ea172a0460
commit 1c896ef18b
2 changed files with 6 additions and 1 deletions

View File

@ -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];