diff src/haptic/SDL_syshaptic.h @ 2495:66c02abeef0e gsoc2008_force_feedback

Added SDL_HapticGetEffectStatus(). More comments.
author Edgar Simo <bobbens@gmail.com>
date Thu, 03 Jul 2008 09:58:27 +0000
parents 10bc7aaf5114
children ef147ee4896c
line wrap: on
line diff
--- a/src/haptic/SDL_syshaptic.h	Thu Jul 03 09:13:22 2008 +0000
+++ b/src/haptic/SDL_syshaptic.h	Thu Jul 03 09:58:27 2008 +0000
@@ -145,6 +145,15 @@
                                         struct haptic_effect * effect);
 
 /*
+ * Queries the device for the status of effect.
+ *
+ * Returns 0 if device is stopped, >0 if device is playing and
+ * -1 on error.
+ */
+extern int SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic,
+                                         struct haptic_effect * effect);
+
+/*
  * Sets the global gain of the haptic device.
  *
  * Returns 0 on success, -1 on error.