mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 11:14:17 +00:00
Refactored input, goes all via windows now.
Also renamed Input to InputFilter because all it does is filter events.
This commit is contained in:
parent
9e08742de8
commit
8e6960a69e
91 changed files with 836 additions and 783 deletions
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "script_editor_plugin.h"
|
||||
|
||||
#include "core/input/input.h"
|
||||
#include "core/input/input_filter.h"
|
||||
#include "core/io/resource_loader.h"
|
||||
#include "core/os/file_access.h"
|
||||
#include "core/os/keyboard.h"
|
||||
|
|
@ -1425,7 +1425,7 @@ void ScriptEditor::_notification(int p_what) {
|
|||
editor->disconnect("stop_pressed", callable_mp(this, &ScriptEditor::_editor_stop));
|
||||
} break;
|
||||
|
||||
case MainLoop::NOTIFICATION_WM_FOCUS_IN: {
|
||||
case NOTIFICATION_WM_FOCUS_IN: {
|
||||
|
||||
_test_script_times_on_disk();
|
||||
_update_modified_scripts_for_external_editor();
|
||||
|
|
@ -1551,7 +1551,7 @@ void ScriptEditor::_help_overview_selected(int p_idx) {
|
|||
|
||||
void ScriptEditor::_script_selected(int p_idx) {
|
||||
|
||||
grab_focus_block = !Input::get_singleton()->is_mouse_button_pressed(1); //amazing hack, simply amazing
|
||||
grab_focus_block = !InputFilter::get_singleton()->is_mouse_button_pressed(1); //amazing hack, simply amazing
|
||||
|
||||
_go_to_tab(script_list->get_item_metadata(p_idx));
|
||||
grab_focus_block = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue