Mercurial > sdl-ios-xcode
annotate src/haptic/dummy/SDL_syshaptic.c @ 2574:c1f07fdd1e2d gsoc2008_force_feedback
Windows build should compile after this.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Thu, 31 Jul 2008 16:38:13 +0000 |
parents | 2a61a38dd138 |
children | 269ba4f28d0e |
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 |
2512
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
54 SDL_SYS_HapticMouse(void) |
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
55 { |
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
56 return -1; |
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
57 } |
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
58 |
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
59 |
ef147ee4896c
Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents:
2509
diff
changeset
|
60 int |
2509
3b54b3a97046
Dummy SDL haptic driver finally builds now.
Edgar Simo <bobbens@gmail.com>
parents:
2508
diff
changeset
|
61 SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick) |
2492
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 return 0; |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
64 } |
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 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
68 SDL_SYS_HapticOpenFromJoystick(SDL_Haptic * haptic, SDL_Joystick * joystick) |
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 SDL_SetError("Logic error: No haptic devices available."); |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
71 return -1; |
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 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
75 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
76 SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick) |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
77 { |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
78 return 0; |
2474
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_HapticClose(SDL_Haptic * haptic) |
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 |
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_HapticQuit(void) |
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 |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
96 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
97 SDL_SYS_HapticNewEffect(SDL_Haptic * haptic, |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
98 struct haptic_effect * effect, |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
99 SDL_HapticEffect * base) |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
100 { |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
101 SDL_SetError("Logic error: No haptic devices available."); |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
102 return -1; |
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 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
105 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
106 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
107 SDL_SYS_HapticUpdateEffect(SDL_Haptic * haptic, |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
108 struct haptic_effect * effect, |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
109 SDL_HapticEffect * data) |
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 SDL_SetError("Logic error: No haptic devices available."); |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
112 return -1; |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
113 } |
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 int |
2544
2a61a38dd138
Alam pointed out that the dummy haptic driver does not compile.
Edgar Simo <bobbens@gmail.com>
parents:
2517
diff
changeset
|
117 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
|
118 { |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
119 SDL_SetError("Logic error: No haptic devices available."); |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
120 return -1; |
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 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
124 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
125 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
|
126 { |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
127 SDL_SetError("Logic error: No haptic devices available."); |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
128 return -1; |
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 |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
132 void |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
133 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
|
134 { |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
135 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
|
136 return; |
2492
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 |
2495
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
140 int SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect * effect) |
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
141 { |
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
142 SDL_SetError("Logic error: No Haptic devices available."); |
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
143 return -1; |
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
144 } |
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
145 |
66c02abeef0e
Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents:
2492
diff
changeset
|
146 |
2492
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
147 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
148 SDL_SYS_HapticSetGain(SDL_Haptic * haptic, int gain) |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
149 { |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
150 SDL_SetError("Logic error: No haptic devices available."); |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
151 return -1; |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
152 } |
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 int |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
156 SDL_SYS_HapticSetAutocenter(SDL_Haptic * haptic, int autocenter) |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
157 { |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
158 SDL_SetError("Logic error: No haptic devices available."); |
31444718601e
Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents:
2474
diff
changeset
|
159 return -1; |
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 |
2474
3f80bf1528b4
Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
163 #endif /* SDL_HAPTIC_DUMMY || SDL_HAPTIC_DISABLED */ |