mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Rename ButtonList enum and members to MouseButton
This commit is contained in:
parent
70eff30c5f
commit
10d7fccb54
75 changed files with 468 additions and 473 deletions
|
@ -1517,7 +1517,7 @@ void ScriptTextEditor::_text_edit_gui_input(const Ref<InputEvent> &ev) {
|
|||
bool create_menu = false;
|
||||
|
||||
CodeEdit *tx = code_editor->get_text_editor();
|
||||
if (mb.is_valid() && mb->get_button_index() == BUTTON_RIGHT && mb->is_pressed()) {
|
||||
if (mb.is_valid() && mb->get_button_index() == MOUSE_BUTTON_RIGHT && mb->is_pressed()) {
|
||||
local_pos = mb->get_global_position() - tx->get_global_position();
|
||||
create_menu = true;
|
||||
} else if (k.is_valid() && k->get_keycode() == KEY_MENU) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue