diff --git a/ion/src/simulator/shared/haptics.cpp b/ion/src/simulator/shared/haptics.cpp index a4f45e31a..acb456279 100644 --- a/ion/src/simulator/shared/haptics.cpp +++ b/ion/src/simulator/shared/haptics.cpp @@ -5,12 +5,9 @@ namespace Ion { namespace Simulator { namespace Haptics { -#if !EPSILON_SDL_SCREEN_ONLY static SDL_Haptic * sSDLHaptic = nullptr; -#endif void init() { -#if !EPSILON_SDL_SCREEN_ONLY if (SDL_Init(SDL_INIT_HAPTIC) == 0) { sSDLHaptic = SDL_HapticOpen(0); if (sSDLHaptic) { @@ -19,23 +16,18 @@ void init() { } } } -#endif } void shutdown() { -#if !EPSILON_SDL_SCREEN_ONLY if (sSDLHaptic) { SDL_HapticClose(sSDLHaptic); } -#endif } void perform() { -#if !EPSILON_SDL_SCREEN_ONLY if (sSDLHaptic) { SDL_HapticRumblePlay(sSDLHaptic, 1.0, 40); } -#endif }