Mercurial > sdl-ios-xcode
annotate src/haptic/dummy/SDL_syshaptic.c @ 2651:ff33a65123ce gsoc2008_force_feedback
Fixed silly mistake because of coding too fast.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Mon, 25 Aug 2008 10:10:13 +0000 |
parents | 9408be170bff |
children | 54b892b6abb5 |
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 |
2646 | 30 static int |
31 SDL_SYS_LogicError(void) | |
32 { | |
33 SDL_SetError("Logic error: No haptic devices available.");; | |
34 } | |
35 | |
36 | |
2474
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
37 int |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
38 SDL_SYS_HapticInit(void) |
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 return 0; |
2474
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
41 } |
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 const char * |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
45 SDL_SYS_HapticName(int index) |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
46 { |
2646 | 47 SDL_SYS_LogicError(); |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
48 return NULL; |
2474
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
49 } |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
50 |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
51 |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
52 int |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
53 SDL_SYS_HapticOpen(SDL_Haptic * haptic) |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
54 { |
2646 | 55 SDL_SYS_LogicError(); |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
56 return -1; |
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 |
2512
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
61 SDL_SYS_HapticMouse(void) |
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
62 { |
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
63 return -1; |
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
64 } |
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
65 |
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
66 |
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
67 int |
2509
3b54b3a97046
Dummy SDL haptic driver finally builds now.
Edgar Simo <bobbens@gmail.com>
parents:
2508
diff
changeset
|
68 SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick) |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
69 { |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
70 return 0; |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
71 } |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
72 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
73 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
74 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
75 SDL_SYS_HapticOpenFromJoystick(SDL_Haptic * haptic, SDL_Joystick * joystick) |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
76 { |
2646 | 77 SDL_SYS_LogicError(); |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
78 return -1; |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
79 } |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
80 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
81 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
82 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
83 SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick) |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
84 { |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
85 return 0; |
2474
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 |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
89 void |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
90 SDL_SYS_HapticClose(SDL_Haptic * haptic) |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
91 { |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
92 return; |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
93 } |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
94 |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
95 |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
96 void |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
97 SDL_SYS_HapticQuit(void) |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
98 { |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
99 return; |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
100 } |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
101 |
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
102 |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
103 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
104 SDL_SYS_HapticNewEffect(SDL_Haptic * haptic, |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
105 struct haptic_effect * effect, |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
106 SDL_HapticEffect * base) |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
107 { |
2646 | 108 SDL_SYS_LogicError(); |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
109 return -1; |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
110 } |
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 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
113 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
114 SDL_SYS_HapticUpdateEffect(SDL_Haptic * haptic, |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
115 struct haptic_effect * effect, |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
116 SDL_HapticEffect * data) |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
117 { |
2646 | 118 SDL_SYS_LogicError(); |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
119 return -1; |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
120 } |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
121 |
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 int |
2544
2a61a38dd138
Alam pointed out that the dummy haptic driver does not compile.
Edgar Simo <bobbens@gmail.com>
parents:
2517
diff
changeset
|
124 SDL_SYS_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect * effect, Uint32 iterations) |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
125 { |
2646 | 126 SDL_SYS_LogicError(); |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
127 return -1; |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
128 } |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
129 |
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 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
132 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
|
133 { |
2646 | 134 SDL_SYS_LogicError(); |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
135 return -1; |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
136 } |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
137 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
138 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
139 void |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
140 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
|
141 { |
2646 | 142 SDL_SYS_LogicError(); |
2509
3b54b3a97046
Dummy SDL haptic driver finally builds now.
Edgar Simo <bobbens@gmail.com>
parents:
2508
diff
changeset
|
143 return; |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
144 } |
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 |
2495
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
147 int SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect * effect) |
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
148 { |
2646 | 149 SDL_SYS_LogicError(); |
2495
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
150 return -1; |
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
151 } |
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
152 |
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
153 |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
154 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
155 SDL_SYS_HapticSetGain(SDL_Haptic * haptic, int gain) |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
156 { |
2646 | 157 SDL_SYS_LogicError(); |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
158 return -1; |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
159 } |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
160 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
161 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
162 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
163 SDL_SYS_HapticSetAutocenter(SDL_Haptic * haptic, int autocenter) |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
164 { |
2646 | 165 SDL_SYS_LogicError(); |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
166 return -1; |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
167 } |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
168 |
2645
269ba4f28d0e
Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents:
2544
diff
changeset
|
169 int |
269ba4f28d0e
Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents:
2544
diff
changeset
|
170 SDL_SYS_HapticPause(SDL_Haptic * haptic) |
269ba4f28d0e
Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents:
2544
diff
changeset
|
171 { |
2646 | 172 SDL_SYS_LogicError(); |
2645
269ba4f28d0e
Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents:
2544
diff
changeset
|
173 return -1; |
269ba4f28d0e
Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents:
2544
diff
changeset
|
174 } |
269ba4f28d0e
Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents:
2544
diff
changeset
|
175 |
269ba4f28d0e
Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents:
2544
diff
changeset
|
176 int |
269ba4f28d0e
Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents:
2544
diff
changeset
|
177 SDL_SYS_HapticUnpause(SDL_Haptic * haptic) |
269ba4f28d0e
Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents:
2544
diff
changeset
|
178 { |
2646 | 179 SDL_SYS_LogicError(); |
180 return -1; | |
181 } | |
182 | |
183 int | |
184 SDL_SYS_HapticStopAll(SDL_Haptic * haptic) | |
185 { | |
186 SDL_SYS_LogicError(); | |
2645
269ba4f28d0e
Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents:
2544
diff
changeset
|
187 return -1; |
269ba4f28d0e
Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents:
2544
diff
changeset
|
188 } |
269ba4f28d0e
Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents:
2544
diff
changeset
|
189 |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
190 |
2646 | 191 |
2474
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
192 #endif /* SDL_HAPTIC_DUMMY || SDL_HAPTIC_DISABLED */ |