2 Simple DirectMedia Layer
3 Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
21 #include "../../SDL_internal.h"
23 #if defined(SDL_HAPTIC_DUMMY) || defined(SDL_HAPTIC_DISABLED)
25 #include "SDL_haptic.h"
26 #include "../SDL_syshaptic.h"
30 SDL_SYS_LogicError(void)
32 return SDL_SetError("Logic error: No haptic devices available.");
37 SDL_SYS_HapticInit(void)
43 SDL_SYS_NumHaptics(void)
49 SDL_SYS_HapticName(int index)
57 SDL_SYS_HapticOpen(SDL_Haptic * haptic)
59 return SDL_SYS_LogicError();
64 SDL_SYS_HapticMouse(void)
71 SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick)
78 SDL_SYS_HapticOpenFromJoystick(SDL_Haptic * haptic, SDL_Joystick * joystick)
80 return SDL_SYS_LogicError();
85 SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
92 SDL_SYS_HapticClose(SDL_Haptic * haptic)
99 SDL_SYS_HapticQuit(void)
106 SDL_SYS_HapticNewEffect(SDL_Haptic * haptic,
107 struct haptic_effect *effect, SDL_HapticEffect * base)
109 return SDL_SYS_LogicError();
114 SDL_SYS_HapticUpdateEffect(SDL_Haptic * haptic,
115 struct haptic_effect *effect,
116 SDL_HapticEffect * data)
118 return SDL_SYS_LogicError();
123 SDL_SYS_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect *effect,
126 return SDL_SYS_LogicError();
131 SDL_SYS_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect)
133 return SDL_SYS_LogicError();
138 SDL_SYS_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect *effect)
140 SDL_SYS_LogicError();
146 SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic,
147 struct haptic_effect *effect)
149 return SDL_SYS_LogicError();
154 SDL_SYS_HapticSetGain(SDL_Haptic * haptic, int gain)
156 return SDL_SYS_LogicError();
161 SDL_SYS_HapticSetAutocenter(SDL_Haptic * haptic, int autocenter)
163 return SDL_SYS_LogicError();
167 SDL_SYS_HapticPause(SDL_Haptic * haptic)
169 return SDL_SYS_LogicError();
173 SDL_SYS_HapticUnpause(SDL_Haptic * haptic)
175 return SDL_SYS_LogicError();
179 SDL_SYS_HapticStopAll(SDL_Haptic * haptic)
181 return SDL_SYS_LogicError();
184 #endif /* SDL_HAPTIC_DUMMY || SDL_HAPTIC_DISABLED */
186 /* vi: set ts=4 sw=4 expandtab: */