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.
2 parents 8b4dd7a + 19dcd71 commit 428a762Copy full SHA for 428a762
platform/macos/display_server_embedded.mm
@@ -427,7 +427,10 @@
427
428
void DisplayServerEmbedded::send_input_event(const Ref<InputEvent> &p_event, WindowID p_id) const {
429
if (p_id != INVALID_WINDOW_ID) {
430
- _window_callback(input_event_callbacks[p_id], p_event);
+ const Callable *cb = input_event_callbacks.getptr(p_id);
431
+ if (cb) {
432
+ _window_callback(*cb, p_event);
433
+ }
434
} else {
435
for (const KeyValue<WindowID, Callable> &E : input_event_callbacks) {
436
_window_callback(E.value, p_event);
0 commit comments