1 --- Atari800/src/input.c.orig Mon Nov 5 00:30:10 2001
2 +++ Atari800/src/input.c Sat Dec 22 18:00:00 2001
5 STICK[3] = (i >> 4) & 0x0f;
7 - if (joy_block_opposite_directions) {
8 - if ((STICK[i] & 0x0c) == 0) { /* right and left simultaneously */
9 - if (last_stick[i] & 0x04) /* if wasn't left before, move left */
11 - else /* else move right */
15 - last_stick[i] &= 0x03;
16 - last_stick[i] |= STICK[i] & 0x0c;
18 - if ((STICK[i] & 0x03) == 0) { /* up and down simultaneously */
19 - if (last_stick[i] & 0x01) /* if wasn't up before, move up */
21 - else /* else move down */
25 - last_stick[i] &= 0x0c;
26 - last_stick[i] |= STICK[i] & 0x03;
27 + for (i = 0; i < 4; i++) {
28 + if (joy_block_opposite_directions) {
29 + if ((STICK[i] & 0x0c) == 0) { /* right and left simultaneously */
30 + if (last_stick[i] & 0x04) /* if wasn't left before, move left */
32 + else /* else move right */
36 + last_stick[i] &= 0x03;
37 + last_stick[i] |= STICK[i] & 0x0c;
39 + if ((STICK[i] & 0x03) == 0) { /* up and down simultaneously */
40 + if (last_stick[i] & 0x01) /* if wasn't up before, move up */
42 + else /* else move down */
46 + last_stick[i] &= 0x0c;
47 + last_stick[i] |= STICK[i] & 0x03;
52 - for (i = 0; i < 4; i++) {
53 last_stick[i] = STICK[i];
54 TRIG[i] = Atari_TRIG(i);
55 if ((joy_autofire[i] == AUTOFIRE_FIRE && !TRIG[i]) || (joy_autofire[i] == AUTOFIRE_CONT))