annotate src/haptic/dummy/SDL_syshaptic.c @ 2510:e6ad7e678fca gsoc2008_force_feedback

Implemented SDL_HAPTIC_CARTESIAN on linux.
author Edgar Simo <bobbens@gmail.com>
date Wed, 09 Jul 2008 18:23:54 +0000
parents 3b54b3a97046
children ef147ee4896c
rev   line source
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
1 /*
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
2 SDL - Simple DirectMedia Layer
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
3 Copyright (C) 2008 Edgar Simo
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
4
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
5 This library is free software; you can redistribute it and/or
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
6 modify it under the terms of the GNU Lesser General Public
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
7 License as published by the Free Software Foundation; either
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
8 version 2.1 of the License, or (at your option) any later version.
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
9
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
10 This library is distributed in the hope that it will be useful,
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
13 Lesser General Public License for more details.
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
14
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
15 You should have received a copy of the GNU Lesser General Public
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
16 License along with this library; if not, write to the Free Software
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
18
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
19 Sam Lantinga
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
20 slouken@libsdl.org
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
21 */
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
22 #include "SDL_config.h"
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
23
2508
f23cee9e16fc Fixed some typos preventing SDL from compiling with the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2495
diff changeset
24 #if defined(SDL_HAPTIC_DUMMY) || defined(SDL_HAPTIC_DISABLED)
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
25
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
26 #include "SDL_haptic.h"
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
27 #include "../SDL_syshaptic.h"
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
28
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
29
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
30 int
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
31 SDL_SYS_HapticInit(void)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
32 {
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
33 return 0;
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
34 }
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
35
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
36
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
37 const char *
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
38 SDL_SYS_HapticName(int index)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
39 {
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
40 SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
41 return NULL;
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
42 }
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
43
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
44
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
45 int
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
46 SDL_SYS_HapticOpen(SDL_Haptic * haptic)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
47 {
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
48 SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
49 return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
50 }
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
51
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
52
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
53 int
2509
3b54b3a97046 Dummy SDL haptic driver finally builds now.
Edgar Simo <bobbens@gmail.com>
parents: 2508
diff changeset
54 SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick)
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
55 {
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
56 return 0;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
57 }
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
58
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
59
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
60 int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
61 SDL_SYS_HapticOpenFromJoystick(SDL_Haptic * haptic, SDL_Joystick * joystick)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
62 {
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
63 SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
64 return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
65 }
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
66
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
67
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
68 int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
69 SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
70 {
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
71 return 0;
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
72 }
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
73
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
74
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
75 void
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
76 SDL_SYS_HapticClose(SDL_Haptic * haptic)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
77 {
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
78 return;
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
79 }
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
80
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
81
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
82 void
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
83 SDL_SYS_HapticQuit(void)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
84 {
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
85 return;
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
86 }
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
87
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
88
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
89 int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
90 SDL_SYS_HapticNewEffect(SDL_Haptic * haptic,
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
91 struct haptic_effect * effect,
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
92 SDL_HapticEffect * base)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
93 {
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
94 SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
95 return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
96 }
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
97
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
98
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
99 int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
100 SDL_SYS_HapticUpdateEffect(SDL_Haptic * haptic,
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
101 struct haptic_effect * effect,
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
102 SDL_HapticEffect * data)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
103 {
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
104 SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
105 return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
106 }
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
107
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
108
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
109 int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
110 SDL_SYS_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect * effect)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
111 {
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
112 SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
113 return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
114 }
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
115
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
116
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
117 int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
118 SDL_SYS_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect * effect)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
119 {
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
120 SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
121 return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
122 }
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
123
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
124
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
125 void
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
126 SDL_SYS_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect * effect)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
127 {
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
128 SDL_SetError("Logic error: No haptic devices available.");
2509
3b54b3a97046 Dummy SDL haptic driver finally builds now.
Edgar Simo <bobbens@gmail.com>
parents: 2508
diff changeset
129 return;
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
130 }
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
131
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
132
2495
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
133 int SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect * effect)
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
134 {
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
135 SDL_SetError("Logic error: No Haptic devices available.");
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
136 return -1;
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
137 }
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
138
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
139
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
140 int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
141 SDL_SYS_HapticSetGain(SDL_Haptic * haptic, int gain)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
142 {
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
143 SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
144 return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
145 }
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
146
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
147
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
148 int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
149 SDL_SYS_HapticSetAutocenter(SDL_Haptic * haptic, int autocenter)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
150 {
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
151 SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
152 return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
153 }
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
154
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
155
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
156 #endif /* SDL_HAPTIC_DUMMY || SDL_HAPTIC_DISABLED */