--- uae/src/od-amiga/joystick.c 2018/04/24 16:40:30 1.1.1.1 +++ uae/src/od-amiga/joystick.c 2018/04/24 17:15:20 1.1.1.2 @@ -1,8 +1,8 @@ - /* + /* * UAE - The Un*x Amiga Emulator - * + * * Joystick emulation for AmigaOS - * + * * Copyright 1996, 1997 Samuel Devulder */ @@ -20,7 +20,7 @@ int nr_joysticks; #include #include -#define CIAAPRA 0xBFE001 +#define CIAAPRA 0xBFE001 #define CUSTOM 0xDFF000 static struct Custom *custom= (struct Custom*) CUSTOM; @@ -29,7 +29,7 @@ static struct CIA *cia = (struct CIA *) void read_joystick(int nr, unsigned int *dir, int *button) { int bot, right, top, left, joy,fire; - + *dir = 0; *button = 0; if (nr >= nr_joysticks) return; @@ -41,7 +41,7 @@ void read_joystick(int nr, unsigned int left = (joy & 0x0200) ? 1 : 0; bot = (joy & 0x0001) ? 1 : 0; top = (joy & 0x0100) ? 1 : 0; - + *button = fire; *dir = bot | (right << 1) | (top << 8) | (left << 9); }