mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 10:23:28 +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
|
|
@ -2737,7 +2737,7 @@ void ScriptEditor::_script_list_gui_input(const Ref<InputEvent> &ev) {
|
|||
Ref<InputEventMouseButton> mb = ev;
|
||||
if (mb.is_valid() && mb->is_pressed()) {
|
||||
switch (mb->get_button_index()) {
|
||||
case BUTTON_MIDDLE: {
|
||||
case MOUSE_BUTTON_MIDDLE: {
|
||||
// Right-click selects automatically; middle-click does not.
|
||||
int idx = script_list->get_item_at_position(mb->get_position(), true);
|
||||
if (idx >= 0) {
|
||||
|
|
@ -2747,7 +2747,7 @@ void ScriptEditor::_script_list_gui_input(const Ref<InputEvent> &ev) {
|
|||
}
|
||||
} break;
|
||||
|
||||
case BUTTON_RIGHT: {
|
||||
case MOUSE_BUTTON_RIGHT: {
|
||||
_make_script_list_context_menu();
|
||||
} break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue