tags 293385 +patch
thanks

--- old/fceu/src/input.c        2004-05-16 22:39:33.000000000 -0500
+++ new/fceu/src/input.c        2005-02-20 17:11:56.735405496 -0500
@@ -191,13 +191,23 @@
          case SI_GAMEPAD:
                 if(!x)
                 {
+                #ifdef LSB_FIRST
+                 joy[0]=*(uint32 *)InputDataPtr[0] >> 24;
+                 joy[2]=*(uint32 *)InputDataPtr[0] >> 8;
+                #else
                  joy[0]=*(uint32 *)InputDataPtr[0];
                  joy[2]=*(uint32 *)InputDataPtr[0] >> 16;
+                #endif
                 }
                 else
                 {
+                #ifdef LSB_FIRST
+                 joy[1]=*(uint32 *)InputDataPtr[1] >> 16;
+                 joy[3]=*(uint32 *)InputDataPtr[1];
+                #else
                  joy[1]=*(uint32 *)InputDataPtr[1] >>8;
                  joy[3]=*(uint32 *)InputDataPtr[1] >>24;
+                #endif
                 }
                break;
          default:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to