From b6498b5c2d0d619953cc2be72b75ccdda0cc90fa Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 6 Feb 2025 13:04:36 +0100 Subject: [PATCH] fix: Build error when including file in ObjC code --- lib/libimhex/include/hex/helpers/keys.hpp | 4 ++-- lib/libimhex/source/helpers/keys.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libimhex/include/hex/helpers/keys.hpp b/lib/libimhex/include/hex/helpers/keys.hpp index a386db18a..6c9e5b059 100644 --- a/lib/libimhex/include/hex/helpers/keys.hpp +++ b/lib/libimhex/include/hex/helpers/keys.hpp @@ -120,5 +120,5 @@ enum Keys { Menu }; -Keys scanCodeToKey(int scanCode); -int keyToScanCode(Keys key); \ No newline at end of file +enum Keys scanCodeToKey(int scanCode); +int keyToScanCode(enum Keys key); \ No newline at end of file diff --git a/lib/libimhex/source/helpers/keys.cpp b/lib/libimhex/source/helpers/keys.cpp index 68bbff4f8..bc7fa9a53 100644 --- a/lib/libimhex/source/helpers/keys.cpp +++ b/lib/libimhex/source/helpers/keys.cpp @@ -2,7 +2,7 @@ #include -Keys scanCodeToKey(int scanCode) { +enum Keys scanCodeToKey(int scanCode) { switch (scanCode) { case GLFW_KEY_SPACE: return Keys::Space; case GLFW_KEY_APOSTROPHE: return Keys::Apostrophe; @@ -120,7 +120,7 @@ Keys scanCodeToKey(int scanCode) { } } -int keyToScanCode(Keys key) { +int keyToScanCode(enum Keys key) { switch (key) { case Keys::Space: return GLFW_KEY_SPACE; case Keys::Apostrophe: return GLFW_KEY_APOSTROPHE;