ifdef the hook for desktop only

This commit is contained in:
Fleeym 2024-04-20 19:41:26 +03:00
parent 9eca9b67c2
commit 0be8dca646

View file

@ -1,3 +1,5 @@
#ifdef GEODE_IS_DESKTOP
#include <Geode/DefaultInclude.hpp> #include <Geode/DefaultInclude.hpp>
#include <Geode/cocos/robtop/glfw/glfw3.h> #include <Geode/cocos/robtop/glfw/glfw3.h>
#include <Geode/cocos/robtop/keyboard_dispatcher/CCKeyboardDispatcher.h> #include <Geode/cocos/robtop/keyboard_dispatcher/CCKeyboardDispatcher.h>
@ -9,7 +11,6 @@
using namespace geode::prelude; using namespace geode::prelude;
class $modify(GeodeCCEGLView, CCEGLView) { class $modify(GeodeCCEGLView, CCEGLView) {
void onGLFWKeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods) { void onGLFWKeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods) {
log::info("glfw key {}", key); log::info("glfw key {}", key);
@ -202,3 +203,5 @@ class $modify(CCKeyboardDispatcher) {
} }
} }
}; };
#endif