fix: Build error when including file in ObjC code
This commit is contained in:
parent
c15030e96e
commit
b6498b5c2d
@ -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);
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user