/*
* PWO: I don't like it at all. It's a mess. Could it be cleared?
*/
-#ifdef TARGET_HOST_WIN32
+#if TARGET_HOST_WIN32
# include <windows.h>
# if defined( __CYGWIN32__ ) || defined( __CYGWIN__ )
# define NEAR /* */
# endif
#endif
-#ifdef TARGET_HOST_WIN32
+#if TARGET_HOST_WIN32
# define _JS_MAX_AXES 6
#else
# ifdef __FreeBSD__
int id;
#endif
-#ifdef TARGET_HOST_WIN32
+#if TARGET_HOST_WIN32
JOYINFOEX js;
UINT js_id;
#else
*/
static void fghJoystickRawRead( SFG_Joystick* joy, int* buttons, float* axes )
{
-#ifdef TARGET_HOST_WIN32
+#if TARGET_HOST_WIN32
MMRESULT status;
#else
int status;
return;
}
-#ifdef TARGET_HOST_WIN32
+#if TARGET_HOST_WIN32
status = joyGetPosEx( joy->js_id, &joy->js );
if( status != JOYERR_NOERROR )
*/
static void fghJoystickOpen( SFG_Joystick* joy )
{
-#ifdef TARGET_HOST_WIN32
+#if TARGET_HOST_WIN32
JOYCAPS jsCaps;
int i;
fgJoystick = ( SFG_Joystick * )calloc( sizeof( SFG_Joystick ), 1 );
-#ifdef TARGET_HOST_WIN32
+#if TARGET_HOST_WIN32
switch( ident )
{
case 0:
if( !fgJoystick )
fgError( "illegal attempt to deinitialize joystick device" );
-#ifndef TARGET_HOST_WIN32
+#if !TARGET_HOST_WIN32
if( ! fgJoystick->error )
close( fgJoystick->fd );
#endif