You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Rename ButtonList enum and members to MouseButton
This commit is contained in:
@@ -4836,15 +4836,15 @@ void EditorNode::_scene_tab_input(const Ref<InputEvent> &p_input) {
|
||||
|
||||
if (mb.is_valid()) {
|
||||
if (scene_tabs->get_hovered_tab() >= 0) {
|
||||
if (mb->get_button_index() == BUTTON_MIDDLE && mb->is_pressed()) {
|
||||
if (mb->get_button_index() == MOUSE_BUTTON_MIDDLE && mb->is_pressed()) {
|
||||
_scene_tab_closed(scene_tabs->get_hovered_tab());
|
||||
}
|
||||
} else {
|
||||
if ((mb->get_button_index() == BUTTON_LEFT && mb->is_doubleclick()) || (mb->get_button_index() == BUTTON_MIDDLE && mb->is_pressed())) {
|
||||
if ((mb->get_button_index() == MOUSE_BUTTON_LEFT && mb->is_doubleclick()) || (mb->get_button_index() == MOUSE_BUTTON_MIDDLE && mb->is_pressed())) {
|
||||
_menu_option_confirm(FILE_NEW_SCENE, true);
|
||||
}
|
||||
}
|
||||
if (mb->get_button_index() == BUTTON_RIGHT && mb->is_pressed()) {
|
||||
if (mb->get_button_index() == MOUSE_BUTTON_RIGHT && mb->is_pressed()) {
|
||||
// context menu
|
||||
scene_tabs_context_menu->clear();
|
||||
scene_tabs_context_menu->set_size(Size2(1, 1));
|
||||
|
||||
Reference in New Issue
Block a user