From 2fd58b30525ad3205f99e71675d63df4b3e8269a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 13 Jan 2024 16:22:33 +0100 Subject: [PATCH] Fixed a compiler error and a compiler warning --- es-core/src/InputManager.cpp | 7 +++++-- es-core/src/InputManager.h | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/es-core/src/InputManager.cpp b/es-core/src/InputManager.cpp index 469e6c919..32738e611 100644 --- a/es-core/src/InputManager.cpp +++ b/es-core/src/InputManager.cpp @@ -22,8 +22,11 @@ #include #define KEYBOARD_GUID_STRING "-1" -#define TOUCH_GUID_STRING "-2" -#define CEC_GUID_STRING "-3" +#define CEC_GUID_STRING "-2" + +#if defined(__ANDROID__) +#define TOUCH_GUID_STRING "-3" +#endif namespace { diff --git a/es-core/src/InputManager.h b/es-core/src/InputManager.h index d0c8143d1..b77667975 100644 --- a/es-core/src/InputManager.h +++ b/es-core/src/InputManager.h @@ -12,7 +12,10 @@ #define ES_CORE_INPUT_MANAGER_H #include "CECInput.h" + +#if defined(__ANDROID__) #include "InputOverlay.h" +#endif #include #include