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

int SDL_HapticInit ( void  )

Definition at line 35 of file SDL_haptic.c.

References SDL_SYS_HapticInit().

Referenced by SDL_InitSubSystem().

36 {
37  int status;
38 
39  status = SDL_SYS_HapticInit();
40  if (status >= 0) {
41  status = 0;
42  }
43 
44  return status;
45 }
int SDL_SYS_HapticInit(void)
void SDL_HapticQuit ( void  )

Definition at line 390 of file SDL_haptic.c.

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

Referenced by SDL_QuitSubSystem().

391 {
392  while (SDL_haptics) {
394  }
395 
397 }
void SDL_SYS_HapticQuit(void)
void SDL_HapticClose(SDL_Haptic *haptic)
Closes a haptic device previously opened with SDL_HapticOpen().
Definition: SDL_haptic.c:335
SDL_Haptic * SDL_haptics
Definition: SDL_haptic.c:29