include/SDL_haptic.h
branchgsoc2008_force_feedback
changeset 2476 242d8a668ebb
parent 2472 3f73c88c9abb
child 2477 97f75ea43a93
     1.1 --- a/include/SDL_haptic.h	Sun Jun 01 19:11:49 2008 +0000
     1.2 +++ b/include/SDL_haptic.h	Mon Jun 23 09:01:58 2008 +0000
     1.3 @@ -65,12 +65,26 @@
     1.4  extern DECLSPEC int SDLCALL SDL_NumHaptics(void);
     1.5  
     1.6  /*
     1.7 - * Get the implementation dependent name of a joystick.
     1.8 + * Get the implementation dependent name of a Haptic device.
     1.9   * This can be called before any joysticks are opened.
    1.10   * If no name can be found, this function returns NULL.
    1.11   */
    1.12  extern DECLSPEC const char *SDLCALL SDL_HapticName(int device_index);
    1.13  
    1.14 +/*
    1.15 + * Opens a Haptic device for usage - the index passed as an
    1.16 + * argument refers to the N'th Haptic device on this system.
    1.17 + *
    1.18 + * This function returns a Haptic device identifier, or Null
    1.19 + * if an error occurred.
    1.20 + */
    1.21 +extern DECLSPEC SDL_Haptic * SDL_HapticOpen(int device_index);
    1.22 +
    1.23 +/* 
    1.24 + * Closes a Haptic device previously opened with SDL_HapticOpen.
    1.25 + */
    1.26 +extern DECLSPEC void SDL_HapticClose(SDL_Haptic * haptic);
    1.27 +
    1.28  
    1.29  /* Ends C function definitions when using C++ */
    1.30  #ifdef __cplusplus