From 9786db308a46c2bbba507c94dafdbf589d87e3c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 22 Sep 2020 17:26:52 +0200 Subject: [PATCH] [ion] Haptics events don't depend on SCREEN_ONLY --- ion/src/simulator/shared/haptics.cpp | 8 -------- 1 file changed, 8 deletions(-) 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 }