comparison src/haptic/SDL_haptic.c @ 2475:4b874e3a3a2c gsoc2008_force_feedback

Some code cleanup.
author Edgar Simo <bobbens@gmail.com>
date Sun, 01 Jun 2008 19:11:49 +0000
parents 3f80bf1528b4
children 242d8a668ebb
comparison
equal deleted inserted replaced
2474:3f80bf1528b4 2475:4b874e3a3a2c
81 return SDL_SYS_HapticName(device_index); 81 return SDL_SYS_HapticName(device_index);
82 } 82 }
83 83
84 84
85 /* 85 /*
86 * Opens a Haptic device 86 * Opens a Haptic device.
87 */ 87 */
88 SDL_Haptic * 88 SDL_Haptic *
89 SDL_HapticOpen(int device_index) 89 SDL_HapticOpen(int device_index)
90 { 90 {
91 int i; 91 int i;
125 } 125 }
126 return haptic; 126 return haptic;
127 } 127 }
128 128
129 129
130 /*
131 * Closes a SDL_Haptic device.
132 */
133 void
134 SDL_HapticClose(SDL_Haptic * haptic)
135 {
136 (void)haptic;
137 /* TODO */
138 }
139
140 /*
141 * Cleans up after the subsystem.
142 */
130 void 143 void
131 SDL_HapticQuit(void) 144 SDL_HapticQuit(void)
132 { 145 {
133 SDL_numhaptics = 0; 146 SDL_numhaptics = 0;
134 147