mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-21 10:38:27 -05:00
ifdef the hook for desktop only
This commit is contained in:
parent
9eca9b67c2
commit
0be8dca646
1 changed files with 4 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
#ifdef GEODE_IS_DESKTOP
|
||||
|
||||
#include <Geode/DefaultInclude.hpp>
|
||||
#include <Geode/cocos/robtop/glfw/glfw3.h>
|
||||
#include <Geode/cocos/robtop/keyboard_dispatcher/CCKeyboardDispatcher.h>
|
||||
|
@ -9,7 +11,6 @@
|
|||
|
||||
using namespace geode::prelude;
|
||||
|
||||
|
||||
class $modify(GeodeCCEGLView, CCEGLView) {
|
||||
void onGLFWKeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods) {
|
||||
log::info("glfw key {}", key);
|
||||
|
@ -202,3 +203,5 @@ class $modify(CCKeyboardDispatcher) {
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue