We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 209a446 commit 19dcd71Copy full SHA for 19dcd71
platform/macos/display_server_embedded.mm
@@ -426,7 +426,10 @@
426
427
void DisplayServerEmbedded::send_input_event(const Ref<InputEvent> &p_event, WindowID p_id) const {
428
if (p_id != INVALID_WINDOW_ID) {
429
- _window_callback(input_event_callbacks[p_id], p_event);
+ const Callable *cb = input_event_callbacks.getptr(p_id);
430
+ if (cb) {
431
+ _window_callback(*cb, p_event);
432
+ }
433
} else {
434
for (const KeyValue<WindowID, Callable> &E : input_event_callbacks) {
435
_window_callback(E.value, p_event);
0 commit comments