diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-23 13:00:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-23 13:00:24 +0100 |
commit | 5238f1399d48397cd1c69053f8fd9bac0f1dfe0a (patch) | |
tree | d726abf3fdea183aac75b4123c64ae03072569c4 /scene/gui/scroll_bar.cpp | |
parent | ecfa2f8de2feb0fc2fe0e6989c362630ce23f1f2 (diff) | |
parent | a5324787c80ebc55b123ab19db2b23404b1241ec (diff) |
Merge pull request #38054 from aaronfranke/enums
Rename many global enums relating to input
Diffstat (limited to 'scene/gui/scroll_bar.cpp')
-rw-r--r-- | scene/gui/scroll_bar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/gui/scroll_bar.cpp b/scene/gui/scroll_bar.cpp index f2516e76a5..a56bf15507 100644 --- a/scene/gui/scroll_bar.cpp +++ b/scene/gui/scroll_bar.cpp @@ -52,17 +52,17 @@ void ScrollBar::_gui_input(Ref<InputEvent> p_event) { if (b.is_valid()) { accept_event(); - if (b->get_button_index() == BUTTON_WHEEL_DOWN && b->is_pressed()) { + if (b->get_button_index() == MOUSE_BUTTON_WHEEL_DOWN && b->is_pressed()) { set_value(get_value() + get_page() / 4.0); accept_event(); } - if (b->get_button_index() == BUTTON_WHEEL_UP && b->is_pressed()) { + if (b->get_button_index() == MOUSE_BUTTON_WHEEL_UP && b->is_pressed()) { set_value(get_value() - get_page() / 4.0); accept_event(); } - if (b->get_button_index() != BUTTON_LEFT) { + if (b->get_button_index() != MOUSE_BUTTON_LEFT) { return; } |