comparison src/haptic/SDL_syshaptic.h @ 2475:4b874e3a3a2c gsoc2008_force_feedback

Some code cleanup.
author Edgar Simo <bobbens@gmail.com>
date Sun, 01 Jun 2008 19:11:49 +0000
parents 3f73c88c9abb
children 97f75ea43a93
comparison
equal deleted inserted replaced
2474:3f80bf1528b4 2475:4b874e3a3a2c
25 #include "SDL_haptic.h" 25 #include "SDL_haptic.h"
26 26
27 27
28 struct _SDL_Haptic 28 struct _SDL_Haptic
29 { 29 {
30 Uint8 index; 30 Uint8 index; /* stores index it is attached to */
31 const char* name; 31 const char* name; /* stores the name of the device */
32 32
33 int neffects; /* maximum amount of effects */ 33 int neffects; /* maximum amount of effects */
34 unsigned int supported; /* supported effects */ 34 unsigned int supported; /* supported effects */
35 35
36 struct haptic_hwdata *hwdata; /* driver dependent */ 36 struct haptic_hwdata *hwdata; /* driver dependent */
37 int ref_count; /* count for multiple opens */ 37 int ref_count; /* count for multiple opens */
38 }; 38 };
39 39
40 40
41 extern int SDL_SYS_HapticInit(void); 41 extern int SDL_SYS_HapticInit(void);
42 extern const char * SDL_SYS_HapticName(int index);
43 extern int SDL_SYS_HapticOpen(SDL_Haptic * haptic);
44 extern void SDL_SYS_HapticClose(SDL_Haptic * haptic);
45 extern void SDL_SYS_HapticQuit(void);
42 46
43 extern const char * SDL_SYS_HapticName(int index);
44