X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fjoystick.c;h=92eec0e352e9f13e84115756556f818d1b0fe2eb;hp=06ac654162e43f38da9f24b483d8d9de64db2691;hb=00383dd409fde133c6738231abfcee662c03087c;hpb=c9433eab5c4317ed4f89164b386a7d33562e29be diff --git a/src/libgame/joystick.c b/src/libgame/joystick.c index 06ac6541..92eec0e3 100644 --- a/src/libgame/joystick.c +++ b/src/libgame/joystick.c @@ -1,15 +1,13 @@ -/*********************************************************** -* Artsoft Retro-Game Library * -*----------------------------------------------------------* -* (c) 1995-2002 Artsoft Entertainment * -* Holger Schemel * -* Detmolder Strasse 189 * -* 33604 Bielefeld * -* Germany * -* e-mail: info@artsoft.org * -*----------------------------------------------------------* -* joystick.c * -***********************************************************/ +// ============================================================================ +// Artsoft Retro-Game Library +// ---------------------------------------------------------------------------- +// (c) 1995-2014 by Artsoft Entertainment +// Holger Schemel +// info@artsoft.org +// http://www.artsoft.org/ +// ---------------------------------------------------------------------------- +// joystick.c +// ============================================================================ #if defined(PLATFORM_FREEBSD) #include @@ -20,84 +18,7 @@ /* ========================================================================= */ -/* platform dependant joystick functions */ -/* ========================================================================= */ - -#if defined(PLATFORM_UNIX) && !defined(TARGET_SDL) -void UnixInitJoysticks() -{ - int i; - - for (i=0; i center) @@ -224,7 +145,7 @@ void CheckJoystickData() int i; int distance = 100; - for(i=0; i= setup.input[i].joy.xmiddle) setup.input[i].joy.xleft = setup.input[i].joy.xmiddle - distance; @@ -317,7 +238,7 @@ int AnyJoystick() int i; int result = 0; - for (i=0; i