diff --git a/external/gameBase b/external/gameBase index 88605e8..e71e5ce 160000 --- a/external/gameBase +++ b/external/gameBase @@ -1 +1 @@ -Subproject commit 88605e8eaaf1b1872f9fe91bcb41428817b11923 +Subproject commit e71e5ce63ef932879ec3d5d3f308e9f3e74e0954 diff --git a/guiAppState.cpp b/guiAppState.cpp index feaccf6..456db38 100755 --- a/guiAppState.cpp +++ b/guiAppState.cpp @@ -107,4 +107,13 @@ namespace battleship{ } void GuiAppState::onAnalog(int bind, float strength) {} + + void GuiAppState::onRawMouseWheelScroll(bool up){ + Listbox *openListbox = getOpenListbox(); + + if(!openListbox) return; + + if(up) openListbox->scrollUp(); + else openListbox->scrollDown(); + } } diff --git a/guiAppState.h b/guiAppState.h index 191efaf..3468766 100755 --- a/guiAppState.h +++ b/guiAppState.h @@ -30,6 +30,7 @@ namespace battleship{ virtual void onRawKeyPress(int); virtual void onRawCharPress(vb01::u32); virtual void onRawMousePress(int); + virtual void onRawMouseWheelScroll(bool); vb01Gui::Textbox* getOpenTextbox(); vb01Gui::Listbox* getOpenListbox();