mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
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]
This commit is contained in:
5
net.c
5
net.c
@ -1871,10 +1871,11 @@ static game_state *make_move(game_state *state, game_ui *ui,
|
|||||||
}
|
}
|
||||||
return state; /* UI activity has occurred */
|
return state; /* UI activity has occurred */
|
||||||
} else if (button == 'a' || button == 's' || button == 'd' ||
|
} 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;
|
tx = ui->cur_x;
|
||||||
ty = ui->cur_y;
|
ty = ui->cur_y;
|
||||||
if (button == 'a' || button == 'A')
|
if (button == 'a' || button == 'A' || button == CURSOR_SELECT)
|
||||||
button = LEFT_BUTTON;
|
button = LEFT_BUTTON;
|
||||||
else if (button == 's' || button == 'S')
|
else if (button == 's' || button == 'S')
|
||||||
button = MIDDLE_BUTTON;
|
button = MIDDLE_BUTTON;
|
||||||
|
@ -43,6 +43,7 @@ enum {
|
|||||||
CURSOR_DOWN,
|
CURSOR_DOWN,
|
||||||
CURSOR_LEFT,
|
CURSOR_LEFT,
|
||||||
CURSOR_RIGHT,
|
CURSOR_RIGHT,
|
||||||
|
CURSOR_SELECT,
|
||||||
|
|
||||||
/* made smaller because of 'limited range of datatype' errors. */
|
/* made smaller because of 'limited range of datatype' errors. */
|
||||||
MOD_CTRL = 0x1000,
|
MOD_CTRL = 0x1000,
|
||||||
|
Reference in New Issue
Block a user