Backspace and Delete keys now function like Space in Solo.

[originally from svn r6237]
This commit is contained in:
Simon Tatham
2005-08-29 11:12:05 +00:00
parent 4d6c8c7337
commit 948c33c5a9
2 changed files with 6 additions and 2 deletions

4
solo.c
View File

@ -2364,13 +2364,13 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
((button >= '1' && button <= '9' && button - '0' <= cr) ||
(button >= 'a' && button <= 'z' && button - 'a' + 10 <= cr) ||
(button >= 'A' && button <= 'Z' && button - 'A' + 10 <= cr) ||
button == ' ')) {
button == ' ' || button == '\010' || button == '\177')) {
int n = button - '0';
if (button >= 'A' && button <= 'Z')
n = button - 'A' + 10;
if (button >= 'a' && button <= 'z')
n = button - 'a' + 10;
if (button == ' ')
if (button == ' ' || button == '\010' || button == '\177')
n = 0;
/*