src/haptic/SDL_haptic.c
changeset 12462 b57435750c5b
parent 12304 27ba030d839f
child 12503 806492103856
equal deleted inserted replaced
12461:14205d7f7715 12462:b57435750c5b
    24 #include "SDL_haptic_c.h"
    24 #include "SDL_haptic_c.h"
    25 #include "../joystick/SDL_joystick_c.h" /* For SDL_PrivateJoystickValid */
    25 #include "../joystick/SDL_joystick_c.h" /* For SDL_PrivateJoystickValid */
    26 #include "SDL_assert.h"
    26 #include "SDL_assert.h"
    27 
    27 
    28 /* Global for SDL_windowshaptic.c */
    28 /* Global for SDL_windowshaptic.c */
       
    29 #if (defined(SDL_HAPTIC_DINPUT) && SDL_HAPTIC_DINPUT) || (defined(SDL_HAPTIC_XINPUT) && SDL_HAPTIC_XINPUT)
    29 SDL_Haptic *SDL_haptics = NULL;
    30 SDL_Haptic *SDL_haptics = NULL;
       
    31 #else 
       
    32 static SDL_Haptic *SDL_haptics = NULL;
       
    33 #endif
    30 
    34 
    31 /*
    35 /*
    32  * Initializes the Haptic devices.
    36  * Initializes the Haptic devices.
    33  */
    37  */
    34 int
    38 int