include/SDL_haptic.h
branchgsoc2008_force_feedback
changeset 2484 666472fd4cb0
parent 2483 9d52368ebcf5
child 2485 67978eea6d10
     1.1 --- a/include/SDL_haptic.h	Tue Jul 01 14:09:53 2008 +0000
     1.2 +++ b/include/SDL_haptic.h	Tue Jul 01 14:21:09 2008 +0000
     1.3 @@ -256,6 +256,14 @@
     1.4   */
     1.5  extern DECLSPEC int SDL_HapticSetGain(SDL_Haptic * haptic, int gain);
     1.6  
     1.7 +/*
     1.8 + * Sets the global autocenter of the device.  Autocenter should be between
     1.9 + * 0 and 100.  Setting it to 0 will disable autocentering.
    1.10 + *
    1.11 + * Returns 0 on success or -1 on failure.
    1.12 + */
    1.13 +extern DECLSPEC int SDL_HapticSetAutocenter(SDL_Haptic * haptic, int autocenter);
    1.14 +
    1.15  
    1.16  /* Ends C function definitions when using C++ */
    1.17  #ifdef __cplusplus