Skip to content

Commit fc1fde4

Browse files
committed
bump to 2.2081, disable ios kb dispatcher hook
1 parent d84688b commit fc1fde4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"gd": {
55
"win": "2.2081",
66
"android": "*",
7-
"mac": "2.2074",
8-
"ios": "2.2074"
7+
"mac": "2.2081",
8+
"ios": "2.2081"
99
},
1010
"id": "geode.devtools",
1111
"name": "DevTools",

src/backend.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ ImGuiKey cocosToImGuiKey(cocos2d::enumKeyCodes key) {
486486
}
487487
}
488488

489+
#ifndef GEODE_IS_IOS
489490
class $modify(CCKeyboardDispatcher) {
490491
bool dispatchKeyboardMSG(enumKeyCodes key, bool down, bool repeat, double a4) {
491492
if(!DevTools::get()->isSetup()) return CCKeyboardDispatcher::dispatchKeyboardMSG(key, down, repeat, a4);
@@ -530,7 +531,7 @@ class $modify(CCKeyboardDispatcher) {
530531
}
531532
}
532533

533-
#if defined(GEODE_IS_MACOS) || defined(GEODE_IS_IOS)
534+
#if defined(GEODE_IS_MACOS)
534535
static void onModify(auto& self) {
535536
Result<> res = self.setHookPriorityBeforePre("CCKeyboardDispatcher::updateModifierKeys", "geode.custom-keybinds");
536537
if (!res) {
@@ -548,3 +549,4 @@ class $modify(CCKeyboardDispatcher) {
548549
}
549550
#endif
550551
};
552+
#endif

0 commit comments

Comments
 (0)