Skip to content

Commit 070d070

Browse files
committed
disable CCKeyboardDispatcher hook on ios
1 parent 399bcd4 commit 070d070

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@ class $modify(CCNode) {
2121
};
2222

2323
// todo: use shortcuts api once Geode has those
24+
#ifndef GEODE_IS_IOS
2425
class $modify(CCKeyboardDispatcher) {
25-
bool dispatchKeyboardMSG(enumKeyCodes key, bool down, bool arr, double a4) {
26+
bool dispatchKeyboardMSG(enumKeyCodes key, bool down, bool arr, double timestamp) {
2627
if (down && (key == KEY_F11 GEODE_MACOS(|| key == KEY_F10))) {
2728
DevTools::get()->toggle();
2829
return true;
2930
}
30-
return CCKeyboardDispatcher::dispatchKeyboardMSG(key, down, arr, a4);
31+
return CCKeyboardDispatcher::dispatchKeyboardMSG(key, down, arr, timestamp);
3132
}
3233
};
34+
#endif
3335

3436
#include <Geode/loader/GameEvent.hpp>
3537
$execute {

0 commit comments

Comments
 (0)