include/SDL_haptic.h
changeset 9570 8681778c5ede
parent 9250 50fb32b7f2bd
child 9619 b94b6d0bff0f
equal deleted inserted replaced
9569:162adf32623f 9570:8681778c5ede
   898 extern DECLSPEC int SDLCALL SDL_JoystickIsHaptic(SDL_Joystick * joystick);
   898 extern DECLSPEC int SDLCALL SDL_JoystickIsHaptic(SDL_Joystick * joystick);
   899 
   899 
   900 /**
   900 /**
   901  *  \brief Opens a Haptic device for usage from a Joystick device.
   901  *  \brief Opens a Haptic device for usage from a Joystick device.
   902  *
   902  *
   903  *  You must still close the haptic device seperately.  It will not be closed
   903  *  You must still close the haptic device separately.  It will not be closed
   904  *  with the joystick.
   904  *  with the joystick.
   905  *
   905  *
   906  *  When opening from a joystick you should first close the haptic device before
   906  *  When opening from a joystick you should first close the haptic device before
   907  *  closing the joystick device.  If not, on some implementations the haptic
   907  *  closing the joystick device.  If not, on some implementations the haptic
   908  *  device will also get unallocated and you'll be unable to use force feedback
   908  *  device will also get unallocated and you'll be unable to use force feedback
   955  *  \sa SDL_HapticQuery
   955  *  \sa SDL_HapticQuery
   956  */
   956  */
   957 extern DECLSPEC int SDLCALL SDL_HapticNumEffectsPlaying(SDL_Haptic * haptic);
   957 extern DECLSPEC int SDLCALL SDL_HapticNumEffectsPlaying(SDL_Haptic * haptic);
   958 
   958 
   959 /**
   959 /**
   960  *  \brief Gets the haptic devices supported features in bitwise matter.
   960  *  \brief Gets the haptic device's supported features in bitwise manner.
   961  *
   961  *
   962  *  Example:
   962  *  Example:
   963  *  \code
   963  *  \code
   964  *  if (SDL_HapticQuery(haptic) & SDL_HAPTIC_CONSTANT) {
   964  *  if (SDL_HapticQuery(haptic) & SDL_HAPTIC_CONSTANT) {
   965  *      printf("We have constant haptic effect!");
   965  *      printf("We have constant haptic effect!");