diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-06-07 19:04:52 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-06-07 19:04:52 +0000 |
| commit | 0eb40587eba25100fcd1eb4f2066c2b0816cd7f7 (patch) | |
| tree | 7bc129201e224ecd745e5d053724fdc52b8cfc5c /net.c | |
| parent | 0bcdb7aa03903dcce000b6d224a07e388030ca00 (diff) | |
| download | puzzles-0eb40587eba25100fcd1eb4f2066c2b0816cd7f7.zip puzzles-0eb40587eba25100fcd1eb4f2066c2b0816cd7f7.tar.gz puzzles-0eb40587eba25100fcd1eb4f2066c2b0816cd7f7.tar.bz2 puzzles-0eb40587eba25100fcd1eb4f2066c2b0816cd7f7.tar.xz | |
Another James Harvey patch. This one introduces a new button code
called `CURSOR_SELECT', intended for platforms which have a fire
button to go with their cursor keys. (Apparently some Palms do.)
CURSOR_SELECT is not bound to anything on any of the current three
platforms, and therefore no game may rely on it being available.
This checkin adds it in Net as a synonym for 'a', the keyboard-based
rotate-left command.
[originally from svn r5915]
Diffstat (limited to 'net.c')
| -rw-r--r-- | net.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1871,10 +1871,11 @@ static game_state *make_move(game_state *state, game_ui *ui, } return state; /* UI activity has occurred */ } else if (button == 'a' || button == 's' || button == 'd' || - button == 'A' || button == 'S' || button == 'D') { + button == 'A' || button == 'S' || button == 'D' || + button == CURSOR_SELECT) { tx = ui->cur_x; ty = ui->cur_y; - if (button == 'a' || button == 'A') + if (button == 'a' || button == 'A' || button == CURSOR_SELECT) button = LEFT_BUTTON; else if (button == 's' || button == 'S') button = MIDDLE_BUTTON; |