joystick: #if 0'd out some things that aren't currently used.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 10 Aug 2018 14:09:44 -0400
changeset 12102c24104045867
parent 12101 8956107f3614
child 12103 89218a12363a
joystick: #if 0'd out some things that aren't currently used.

Fixes some compiler warnings.
src/joystick/controller_type.h
     1.1 --- a/src/joystick/controller_type.h	Fri Aug 10 11:50:55 2018 +0300
     1.2 +++ b/src/joystick/controller_type.h	Fri Aug 10 14:09:44 2018 -0400
     1.3 @@ -68,16 +68,17 @@
     1.4  	k_eControllertype_GenericMouse = 800,
     1.5  } EControllerType;
     1.6  
     1.7 +static inline bool BIsSteamController( EControllerType eType )
     1.8 +{
     1.9 +	return ( eType == k_eControllerType_SteamController || eType == k_eControllerType_SteamControllerV2 );
    1.10 +}
    1.11 +
    1.12 +#if 0  /* these are currently unused, so #if 0'd out to prevent compiler warnings for now */
    1.13  static inline bool BIsSteamHardwareDevice( EControllerType eType )
    1.14  {
    1.15  	return ( eType == k_eControllerType_SteamController || eType == k_eControllerType_SteamControllerV2 || eType == k_eControllerType_FrontPanelBoard );
    1.16  }
    1.17  
    1.18 -static inline bool BIsSteamController( EControllerType eType )
    1.19 -{
    1.20 -	return ( eType == k_eControllerType_SteamController || eType == k_eControllerType_SteamControllerV2 );
    1.21 -}
    1.22 -
    1.23  static inline bool BIsXInputController( EControllerType eType )
    1.24  {
    1.25  	return ( eType == k_eControllerType_XBox360Controller || eType == k_eControllerType_XBoxOneController || eType == k_eControllerType_UnknownNonSteamController );
    1.26 @@ -113,6 +114,7 @@
    1.27  		return true;
    1.28  	return false;
    1.29  }
    1.30 +#endif
    1.31  
    1.32  #define MAKE_CONTROLLER_ID( nVID, nPID )	(unsigned int)( nVID << 16 | nPID )
    1.33  typedef struct
    1.34 @@ -427,11 +429,13 @@
    1.35  };
    1.36  
    1.37  
    1.38 +#if 0  /* these are currently unused, so #if 0'd out to prevent compiler warnings for now */
    1.39  static inline const ControllerDescription_t * GetControllerArray( int* nLength /* Out */)
    1.40  {
    1.41  	*nLength = sizeof( arrControllers ) / sizeof( arrControllers[0] );
    1.42  	return arrControllers;
    1.43  }
    1.44 +#endif
    1.45  
    1.46  static inline EControllerType GuessControllerType( int nVID, int nPID )
    1.47  {