Mercurial > sdl-ios-xcode
comparison src/haptic/SDL_syshaptic.h @ 2524:1a55848ce198 gsoc2008_force_feedback
Better handling of opening haptics from joysticks.
Fixed segfault when opening from joystick.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Thu, 17 Jul 2008 16:07:20 +0000 |
parents | 366d84fdf8d1 |
children | c6476e26a783 |
comparison
equal
deleted
inserted
replaced
2523:366d84fdf8d1 | 2524:1a55848ce198 |
---|---|
41 * The real SDL_Haptic struct. | 41 * The real SDL_Haptic struct. |
42 */ | 42 */ |
43 struct _SDL_Haptic | 43 struct _SDL_Haptic |
44 { | 44 { |
45 Uint8 index; /* Stores index it is attached to */ | 45 Uint8 index; /* Stores index it is attached to */ |
46 const char* name; /* Stores the name of the device */ | |
47 | 46 |
48 struct haptic_effect *effects; /* Allocated effects */ | 47 struct haptic_effect *effects; /* Allocated effects */ |
49 int neffects; /* Maximum amount of effects */ | 48 int neffects; /* Maximum amount of effects */ |
50 int nplaying; /* Maximum amount of effects to play at the same time */ | 49 int nplaying; /* Maximum amount of effects to play at the same time */ |
51 unsigned int supported; /* Supported effects */ | 50 unsigned int supported; /* Supported effects */ |