src/haptic/windows/SDL_dinputhaptic.c
changeset 9658 9753468b5c0e
parent 9619 b94b6d0bff0f
child 9661 62a04df5afe1
equal deleted inserted replaced
9657:fbc01731d914 9658:9753468b5c0e
    18      misrepresented as being the original software.
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    20 */
    21 #include "../../SDL_internal.h"
    21 #include "../../SDL_internal.h"
    22 
    22 
       
    23 #if SDL_HAPTIC_DINPUT
       
    24 
    23 #include "SDL_error.h"
    25 #include "SDL_error.h"
    24 #include "SDL_stdinc.h"
    26 #include "SDL_stdinc.h"
    25 #include "SDL_haptic.h"
    27 #include "SDL_haptic.h"
    26 #include "SDL_timer.h"
    28 #include "SDL_timer.h"
    27 #include "SDL_windowshaptic_c.h"
    29 #include "SDL_windowshaptic_c.h"
    28 #include "SDL_dinputhaptic_c.h"
    30 #include "SDL_dinputhaptic_c.h"
    29 #include "../SDL_syshaptic.h"
    31 #include "../SDL_syshaptic.h"
    30 #include "../../joystick/windows/SDL_windowsjoystick_c.h"
    32 #include "../../joystick/windows/SDL_windowsjoystick_c.h"
    31 
       
    32 
       
    33 #if SDL_HAPTIC_DINPUT
       
    34 
    33 
    35 /*
    34 /*
    36  * External stuff.
    35  * External stuff.
    37  */
    36  */
    38 extern HWND SDL_HelperWindow;
    37 extern HWND SDL_HelperWindow;
  1179     return 0;
  1178     return 0;
  1180 }
  1179 }
  1181 
  1180 
  1182 #else /* !SDL_HAPTIC_DINPUT */
  1181 #else /* !SDL_HAPTIC_DINPUT */
  1183 
  1182 
  1184 
       
  1185 int
  1183 int
  1186 SDL_DINPUT_HapticInit(void)
  1184 SDL_DINPUT_HapticInit(void)
  1187 {
  1185 {
  1188     return 0;
  1186     return 0;
  1189 }
  1187 }