SDL 2.0
SDL_haptic_c.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int SDL_HapticInit (void)
 
void SDL_HapticQuit (void)
 

Function Documentation

◆ SDL_HapticInit()

int SDL_HapticInit ( void  )

Definition at line 39 of file SDL_haptic.c.

40{
41 int status;
42
43 status = SDL_SYS_HapticInit();
44 if (status >= 0) {
45 status = 0;
46 }
47
48 return status;
49}
int SDL_SYS_HapticInit(void)

References SDL_SYS_HapticInit().

Referenced by SDL_InitSubSystem().

◆ SDL_HapticQuit()

void SDL_HapticQuit ( void  )

Definition at line 394 of file SDL_haptic.c.

395{
396 while (SDL_haptics) {
398 }
399
401}
void SDL_HapticClose(SDL_Haptic *haptic)
Closes a haptic device previously opened with SDL_HapticOpen().
Definition: SDL_haptic.c:339
static SDL_Haptic * SDL_haptics
Definition: SDL_haptic.c:32
void SDL_SYS_HapticQuit(void)

References SDL_HapticClose(), SDL_haptics, and SDL_SYS_HapticQuit().

Referenced by SDL_QuitSubSystem().