comparison src/joystick/mint/SDL_sysjoystick.c @ 1635:92947e3a18db

Make sure code is only compiled if the appropriate subsystem is enabled
author Sam Lantinga <slouken@libsdl.org>
date Fri, 14 Apr 2006 04:46:47 +0000
parents a8181c4040b8
children 782fd950bd46 c121d94672cb 28db418c7573
comparison
equal deleted inserted replaced
1634:14f302c5b32c 1635:92947e3a18db
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23
24 #ifdef SDL_JOYSTICK_MINT
23 25
24 /* 26 /*
25 * Atari Joystick/Joypad drivers 27 * Atari Joystick/Joypad drivers
26 * 28 *
27 * Patrice Mandin 29 * Patrice Mandin
625 JOYPAD_IO.directions=0xff7f; 627 JOYPAD_IO.directions=0xff7f;
626 jp_joypads[1] |= ((~(JOYPAD_IO.fires)) & (3<<2))<<(16+4); 628 jp_joypads[1] |= ((~(JOYPAD_IO.fires)) & (3<<2))<<(16+4);
627 JOYPAD_IO.directions=0xff7f; 629 JOYPAD_IO.directions=0xff7f;
628 jp_joypads[1] |= (((~(JOYPAD_IO.directions))>>12) & 15)<<12; 630 jp_joypads[1] |= (((~(JOYPAD_IO.directions))>>12) & 15)<<12;
629 } 631 }
632
633 #endif /* SDL_JOYSTICK_MINT */