]> git.lizzy.rs Git - irrlicht.git/blobdiff - source/Irrlicht/CGUIListBox.h
Fix: Listbox was sometimes sending EGET_LISTBOX_SELECTED_AGAIN instead of EGET_LISTBO...
[irrlicht.git] / source / Irrlicht / CGUIListBox.h
index a3e7255a6975d241af0d4c15d18745d5cf94af81..37fffa847c65da9b0d9c20a341eff6a05a940711 100644 (file)
@@ -154,6 +154,7 @@ namespace gui
 \r
                core::array< ListItem > Items;\r
                s32 Selected;\r
+               s32 HoverSelected;      // When >= 0 we're in the middle of changing selection while mouse is pressed. We need to know so selected again isn't called too often.\r
                s32 ItemHeight;\r
                s32 ItemHeightOverride;\r
                s32 TotalItemHeight;\r
@@ -161,7 +162,7 @@ namespace gui
                gui::IGUIFont* Font;\r
                gui::IGUISpriteBank* IconBank;\r
                gui::IGUIScrollBar* ScrollBar;\r
-               u32 selectTime;\r
+               u32 SelectTime;\r
                u32 LastKeyTime;\r
                core::stringw KeyBuffer;\r
                bool Selecting;\r