You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Refactored Input, create DisplayServer and DisplayServerX11
This commit is contained in:
committed by
Juan Linietsky
parent
a2da99f40c
commit
4396e98834
@@ -31,6 +31,7 @@
|
||||
#include "scene_tree.h"
|
||||
|
||||
#include "core/debugger/engine_debugger.h"
|
||||
#include "core/input/input.h"
|
||||
#include "core/io/marshalls.h"
|
||||
#include "core/io/resource_loader.h"
|
||||
#include "core/message_queue.h"
|
||||
@@ -39,7 +40,6 @@
|
||||
#include "core/os/os.h"
|
||||
#include "core/print_string.h"
|
||||
#include "core/project_settings.h"
|
||||
#include "main/input_default.h"
|
||||
#include "node.h"
|
||||
#include "scene/debugger/scene_debugger.h"
|
||||
#include "scene/resources/dynamic_font.h"
|
||||
@@ -668,7 +668,7 @@ void SceneTree::_notification(int p_notification) {
|
||||
|
||||
case NOTIFICATION_WM_FOCUS_IN: {
|
||||
|
||||
InputDefault *id = Object::cast_to<InputDefault>(Input::get_singleton());
|
||||
Input *id = Input::get_singleton();
|
||||
if (id) {
|
||||
id->ensure_touch_mouse_raised();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user