src/haptic/SDL_syshaptic.h
branchgsoc2008_force_feedback
changeset 2495 66c02abeef0e
parent 2491 10bc7aaf5114
child 2512 ef147ee4896c
--- 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.