summaryrefslogtreecommitdiff
path: root/scene/gui/tab_container.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-23 13:00:24 +0100
committerGitHub <noreply@github.com>2021-03-23 13:00:24 +0100
commit5238f1399d48397cd1c69053f8fd9bac0f1dfe0a (patch)
treed726abf3fdea183aac75b4123c64ae03072569c4 /scene/gui/tab_container.cpp
parentecfa2f8de2feb0fc2fe0e6989c362630ce23f1f2 (diff)
parenta5324787c80ebc55b123ab19db2b23404b1241ec (diff)
Merge pull request #38054 from aaronfranke/enums
Rename many global enums relating to input
Diffstat (limited to 'scene/gui/tab_container.cpp')
-rw-r--r--scene/gui/tab_container.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp
index 3bf163f670..1e31f9e206 100644
--- a/scene/gui/tab_container.cpp
+++ b/scene/gui/tab_container.cpp
@@ -76,7 +76,7 @@ void TabContainer::_gui_input(const Ref<InputEvent> &p_event) {
Popup *popup = get_popup();
- if (mb.is_valid() && mb->is_pressed() && mb->get_button_index() == BUTTON_LEFT) {
+ if (mb.is_valid() && mb->is_pressed() && mb->get_button_index() == MOUSE_BUTTON_LEFT) {
Point2 pos(mb->get_position().x, mb->get_position().y);
Size2 size = get_size();