@@ -66,9 +66,9 @@ std::string getTargetID(std::string path, bool alt) {
6666
6767// ===== //
6868
69- enumKeyCodes getPopupKey () { return Mod::get ()->getSettingValue <Keybind >(" key_popup" ).getKey (); };
70- enumKeyCodes getTextboxKey () { return Mod::get ()->getSettingValue <Keybind >(" key_dialogue" ).getKey (); };
71- enumKeyCodes getChestKey () { return Mod::get ()->getSettingValue <Keybind >(" key_chest" ).getKey (); };
69+ enumKeyCodes getPopupKey () { return Mod::get ()->getSettingValue <CTKeybind >(" key_popup" ).getKey (); };
70+ enumKeyCodes getTextboxKey () { return Mod::get ()->getSettingValue <CTKeybind >(" key_dialogue" ).getKey (); };
71+ enumKeyCodes getChestKey () { return Mod::get ()->getSettingValue <CTKeybind >(" key_chest" ).getKey (); };
7272
7373// ===== //
7474
@@ -148,7 +148,7 @@ bool killAllAlerts() {
148148 auto children = scene->getChildren ();
149149 for (int i = children->count () - 1 ; i >= 0 ; i--) {
150150 CCNode* n = typeinfo_cast<CCNode*>(children->objectAtIndex (i));
151- if (n != nullptr && n->getID ().starts_with (" " _spr)) {
151+ if (n != nullptr && std::string ( n->getID () ).starts_with (" " _spr)) {
152152 n->removeMeAndCleanup ();
153153 killed = true ;
154154 }
@@ -168,8 +168,8 @@ bool killAllAlerts() {
168168
169169// Handle key presses
170170class $modify(CCKeyboardDispatcher) {
171- bool dispatchKeyboardMSG (enumKeyCodes key, bool down, bool repeat) {
172- if (repeat || !down || key == KEY_None || key == KEY_Unknown) return CCKeyboardDispatcher::dispatchKeyboardMSG (key, down, repeat);
171+ bool dispatchKeyboardMSG (enumKeyCodes key, bool down, bool repeat, double time ) {
172+ if (repeat || !down || key == KEY_None || key == KEY_Unknown) return CCKeyboardDispatcher::dispatchKeyboardMSG (key, down, repeat, time );
173173
174174 else if (key == KEY_Escape && CCKeyboardDispatcher::get ()->getShiftKeyPressed ()) {
175175 if (killAllAlerts ()) return false ;
@@ -179,7 +179,7 @@ class $modify(CCKeyboardDispatcher) {
179179 else if (key == getTextboxKey ()) prepTextbox ();
180180 else if (key == getChestKey ()) prepChest ();
181181
182- return CCKeyboardDispatcher::dispatchKeyboardMSG (key, down, repeat);
182+ return CCKeyboardDispatcher::dispatchKeyboardMSG (key, down, repeat, time );
183183 }
184184};
185185
0 commit comments