1
0
mirror of synced 2025-02-13 17:12:39 +01:00

fix: Build error when including file in ObjC code

This commit is contained in:
WerWolv 2025-02-06 13:04:36 +01:00
parent c15030e96e
commit b6498b5c2d
2 changed files with 4 additions and 4 deletions

View File

@ -120,5 +120,5 @@ enum Keys {
Menu
};
Keys scanCodeToKey(int scanCode);
int keyToScanCode(Keys key);
enum Keys scanCodeToKey(int scanCode);
int keyToScanCode(enum Keys key);

View File

@ -2,7 +2,7 @@
#include <GLFW/glfw3.h>
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;