src/haptic/SDL_syshaptic.h
branchgsoc2008_force_feedback
changeset 2512 ef147ee4896c
parent 2495 66c02abeef0e
child 2515 030fc4375e63
     1.1 --- a/src/haptic/SDL_syshaptic.h	Wed Jul 09 18:29:11 2008 +0000
     1.2 +++ b/src/haptic/SDL_syshaptic.h	Thu Jul 10 08:38:08 2008 +0000
     1.3 @@ -25,6 +25,12 @@
     1.4  #include "SDL_haptic.h"
     1.5  
     1.6  
     1.7 +/*
     1.8 + * Number of haptic devices on the system.
     1.9 + */
    1.10 +extern Uint8 SDL_numhaptics;
    1.11 +
    1.12 +
    1.13  struct haptic_effect
    1.14  {
    1.15     SDL_HapticEffect effect; /* The current event */
    1.16 @@ -68,6 +74,11 @@
    1.17  extern int SDL_SYS_HapticOpen(SDL_Haptic * haptic);
    1.18  
    1.19  /*
    1.20 + * Returns the index of the haptic core pointer or -1 if none is found.
    1.21 + */
    1.22 +int SDL_SYS_HapticMouse(void);
    1.23 +
    1.24 +/*
    1.25   * Checks to see if the joystick has haptic capabilities.
    1.26   *
    1.27   * Returns >0 if haptic capabilities are detected, 0 if haptic
    1.28 @@ -83,7 +94,6 @@
    1.29   */
    1.30  extern int SDL_SYS_HapticOpenFromJoystick(SDL_Haptic * haptic,
    1.31                                            SDL_Joystick * joystick);
    1.32 -
    1.33  /*
    1.34   * Checks to see if haptic device and joystick device are the same.
    1.35   *