Mercurial > sdl-ios-xcode
diff src/joystick/amigaos/SDL_sysjoystick.c @ 255:dcb5e869f8b5
Updated Amiga port by Gabriele Greco
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 16 Dec 2001 20:00:27 +0000 |
parents | e8157fcb3114 |
children | f6ffac90895c |
line wrap: on
line diff
--- a/src/joystick/amigaos/SDL_sysjoystick.c Fri Dec 14 13:13:20 2001 +0000 +++ b/src/joystick/amigaos/SDL_sysjoystick.c Sun Dec 16 20:00:27 2001 +0000 @@ -31,7 +31,7 @@ #include <stdio.h> /* For the definition of NULL */ #include <libraries/lowlevel.h> -#ifdef __SASC +#if defined(__SASC) || defined(STORMC4_WOS) #include <proto/exec.h> #include <proto/lowlevel.h> #include <proto/graphics.h> @@ -72,7 +72,7 @@ JPF_BUTTON_REVERSE, }; -struct joystick_hwdata +struct joystick_hwdata { ULONG joystate; }; @@ -128,7 +128,7 @@ for(i=0;i<20;i++) { - temp=ReadJoyPort(joystick->index); + temp=ReadJoyPort(joystick->index^1); // fix to invert amiga joyports WaitTOF(); } @@ -152,7 +152,7 @@ */ void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) { - ULONG data; + ULONG data; int i; if(joystick->index<2)