mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
Add more keyboard controls to Slant.
This commit is contained in:

committed by
Simon Tatham

parent
ebf31f52b0
commit
11a394f69b
5
slant.c
5
slant.c
@ -1719,6 +1719,11 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
||||
move_cursor(button, &ui->cur_x, &ui->cur_y, w, h, 0);
|
||||
ui->cur_visible = 1;
|
||||
return "";
|
||||
} else if (button == '\\' || button == '\b' || button == '/') {
|
||||
int x = ui->cur_x, y = ui->cur_y;
|
||||
if (button == ("\\" "\b" "/")[state->soln[y*w + x] + 1]) return NULL;
|
||||
sprintf(buf, "%c%d,%d", button == '\b' ? 'C' : button, x, y);
|
||||
return dupstr(buf);
|
||||
}
|
||||
|
||||
if (action != NONE) {
|
||||
|
Reference in New Issue
Block a user