Start pushing updateUseInput into other update functions

This commit is contained in:
2023-03-29 14:27:37 +01:00
parent 5b5ed519dd
commit 69a76dbf93
3 changed files with 13 additions and 24 deletions
+2 -2
View File
@@ -29,8 +29,8 @@ import Geometry
import LensHelp
import SDL
updateUseInputInGame :: HUDElement -> Universe -> Universe
updateUseInputInGame h u = case h of
updateUseInputInGame :: Universe -> Universe
updateUseInputInGame u = case u ^. uvWorld . hud . hudElement of
DisplayCarte -> over uvWorld updatePressedButtonsCarte u
DisplayInventory{_subInventory = si} -> case si of
DisplayTerminal tmid