comparison src/haptic/dummy/SDL_syshaptic.c @ 2509:3b54b3a97046 gsoc2008_force_feedback

Dummy SDL haptic driver finally builds now.
author Edgar Simo <bobbens@gmail.com>
date Wed, 09 Jul 2008 17:06:54 +0000
parents f23cee9e16fc
children ef147ee4896c
comparison
equal deleted inserted replaced
2508:f23cee9e16fc 2509:3b54b3a97046
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 #if defined(SDL_HAPTIC_DUMMY) || defined(SDL_HAPTIC_DISABLED) 24 #if defined(SDL_HAPTIC_DUMMY) || defined(SDL_HAPTIC_DISABLED)
25 25
26 #include "SDL_haptic.h" 26 #include "SDL_haptic.h"
27 #include "../SDL_haptic_c.h"
28 #include "../SDL_syshaptic.h" 27 #include "../SDL_syshaptic.h"
29 28
30 29
31 int 30 int
32 SDL_SYS_HapticInit(void) 31 SDL_SYS_HapticInit(void)
33 { 32 {
34 SDL_numhaptics = 0;
35 return 0; 33 return 0;
36 } 34 }
37 35
38 36
39 const char * 37 const char *
51 return -1; 49 return -1;
52 } 50 }
53 51
54 52
55 int 53 int
56 SDL_JoystickIsHaptic(SDL_Joystick * joystick) 54 SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick)
57 { 55 {
58 return 0; 56 return 0;
59 } 57 }
60 58
61 59
126 124
127 void 125 void
128 SDL_SYS_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect * effect) 126 SDL_SYS_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect * effect)
129 { 127 {
130 SDL_SetError("Logic error: No haptic devices available."); 128 SDL_SetError("Logic error: No haptic devices available.");
131 return -1; 129 return;
132 } 130 }
133 131
134 132
135 int SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect * effect) 133 int SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect * effect)
136 { 134 {