mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 09:23:40 +00:00
Use mouse and joypad enums instead of plain integers
Also MIDIMessage
This commit is contained in:
parent
e919d894f8
commit
0ce49800ac
38 changed files with 188 additions and 181 deletions
|
@ -1629,7 +1629,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 = !Input::get_singleton()->is_mouse_button_pressed(MOUSE_BUTTON_LEFT); //amazing hack, simply amazing
|
||||
|
||||
_go_to_tab(script_list->get_item_metadata(p_idx));
|
||||
grab_focus_block = false;
|
||||
|
@ -2771,6 +2771,8 @@ void ScriptEditor::_script_list_gui_input(const Ref<InputEvent> &ev) {
|
|||
case MOUSE_BUTTON_RIGHT: {
|
||||
_make_script_list_context_menu();
|
||||
} break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue