Continue mouse refactor, add explicit release event/timer

This commit is contained in:
2024-11-19 12:00:31 +00:00
parent 5b709cd7ba
commit e31f6dfd4b
10 changed files with 97 additions and 75 deletions
+3 -2
View File
@@ -22,6 +22,7 @@ defaultInput =
, _textInput = mempty
, _pressedKeys = mempty
, _mouseButtons = mempty
, _mouseButtonsReleased = mempty
, _mousePos = V2 0 0
, _mouseMoving = False
, _scrollAmount = 0
@@ -162,8 +163,8 @@ defaultDisplayInventory :: HUDElement
defaultDisplayInventory =
DisplayInventory
{ _subInventory = NoSubInventory
{_nsSelected = MouseInvNothing
}
-- {_nsSelected = MouseInvNothing
-- }
, _diSections = defaultInvSections
, _diSelection = Just (1,0)
, _diSelectionExtra = 0