mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Rename InputFilter back to Input
It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.
This commit is contained in:
		
							parent
							
								
									39f7a40925
								
							
						
					
					
						commit
						fdf58a5858
					
				
					 82 changed files with 482 additions and 480 deletions
				
			
		|  | @ -30,7 +30,7 @@ | |||
| 
 | ||||
| #include "script_editor_plugin.h" | ||||
| 
 | ||||
| #include "core/input/input_filter.h" | ||||
| #include "core/input/input.h" | ||||
| #include "core/io/resource_loader.h" | ||||
| #include "core/os/file_access.h" | ||||
| #include "core/os/keyboard.h" | ||||
|  | @ -1545,7 +1545,7 @@ void ScriptEditor::_help_overview_selected(int p_idx) { | |||
| 
 | ||||
| void ScriptEditor::_script_selected(int p_idx) { | ||||
| 
 | ||||
| 	grab_focus_block = !InputFilter::get_singleton()->is_mouse_button_pressed(1); //amazing hack, simply amazing
 | ||||
| 	grab_focus_block = !Input::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
	
	 Rémi Verschelde
						Rémi Verschelde