Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 131a4ee

Browse files
FleeymSpaghettDev
authored andcommittedMar 3, 2025
ifdef the hook for desktop only
1 parent 2fdd842 commit 131a4ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎loader/src/hooks/AddExtraKeys.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifdef GEODE_IS_DESKTOP
2+
13
#include <Geode/DefaultInclude.hpp>
24
#include <Geode/cocos/robtop/glfw/glfw3.h>
35
#include <Geode/cocos/robtop/keyboard_dispatcher/CCKeyboardDispatcher.h>
@@ -9,7 +11,6 @@
911

1012
using namespace geode::prelude;
1113

12-
1314
class $modify(GeodeCCEGLView, CCEGLView) {
1415
void onGLFWKeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods) {
1516
log::info("glfw key {}", key);
@@ -202,3 +203,5 @@ class $modify(CCKeyboardDispatcher) {
202203
}
203204
}
204205
};
206+
207+
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.