]> git.pld-linux.org Git - packages/Atari800.git/commitdiff
- orphaned, outdated
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 21 Apr 2006 23:40:18 +0000 (23:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Atari800-joystick.patch -> 1.2

Atari800-joystick.patch [deleted file]

diff --git a/Atari800-joystick.patch b/Atari800-joystick.patch
deleted file mode 100644 (file)
index 8b4c737..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
---- Atari800/src/input.c.orig  Mon Nov  5 00:30:10 2001
-+++ Atari800/src/input.c       Sat Dec 22 18:00:00 2001
-@@ -279,30 +279,30 @@
-       STICK[2] = i & 0x0f;
-       STICK[3] = (i >> 4) & 0x0f;
--      if (joy_block_opposite_directions) {
--              if ((STICK[i] & 0x0c) == 0) {   /* right and left simultaneously */
--                      if (last_stick[i] & 0x04)       /* if wasn't left before, move left */
--                              STICK[i] |= 0x08;
--                      else                                            /* else move right */
--                              STICK[i] |= 0x04;
--              }
--              else {
--                      last_stick[i] &= 0x03;
--                      last_stick[i] |= STICK[i] & 0x0c;
--              }
--              if ((STICK[i] & 0x03) == 0) {   /* up and down simultaneously */
--                      if (last_stick[i] & 0x01)       /* if wasn't up before, move up */
--                              STICK[i] |= 0x02;
--                      else                                            /* else move down */
--                              STICK[i] |= 0x01;
--              }
--              else {
--                      last_stick[i] &= 0x0c;
--                      last_stick[i] |= STICK[i] & 0x03;
-+      for (i = 0; i < 4; i++) {
-+              if (joy_block_opposite_directions) {
-+                      if ((STICK[i] & 0x0c) == 0) {   /* right and left simultaneously */
-+                              if (last_stick[i] & 0x04)       /* if wasn't left before, move left */
-+                                      STICK[i] |= 0x08;
-+                              else                                            /* else move right */
-+                                      STICK[i] |= 0x04;
-+                      }
-+                      else {
-+                              last_stick[i] &= 0x03;
-+                              last_stick[i] |= STICK[i] & 0x0c;
-+                      }
-+                      if ((STICK[i] & 0x03) == 0) {   /* up and down simultaneously */
-+                              if (last_stick[i] & 0x01)       /* if wasn't up before, move up */
-+                                      STICK[i] |= 0x02;
-+                              else                                            /* else move down */
-+                                      STICK[i] |= 0x01;
-+                      }
-+                      else {
-+                              last_stick[i] &= 0x0c;
-+                              last_stick[i] |= STICK[i] & 0x03;
-+                      }
-               }
--      }
--      for (i = 0; i < 4; i++) {
-               last_stick[i] = STICK[i];
-               TRIG[i] = Atari_TRIG(i);
-               if ((joy_autofire[i] == AUTOFIRE_FIRE && !TRIG[i]) || (joy_autofire[i] == AUTOFIRE_CONT))
This page took 0.12108 seconds and 4 git commands to generate.