Fix dependency loop
This commit is contained in:
parent
b7278d6afc
commit
f529fc5237
25 changed files with 251 additions and 199 deletions
|
@ -1,13 +1,16 @@
|
|||
module RPGEngine.Input.Win
|
||||
module RPGEngine.Input.Win
|
||||
( handleInputWin
|
||||
) where
|
||||
|
||||
import RPGEngine.Input.Core ( InputHandler )
|
||||
|
||||
import RPGEngine.Data ( Game )
|
||||
import RPGEngine.Input.Core (InputHandler, handleAnyKey)
|
||||
import RPGEngine.Data (Game (..), State (Menu))
|
||||
|
||||
------------------------------ Exported ------------------------------
|
||||
|
||||
-- TODO
|
||||
handleInputWin :: InputHandler Game
|
||||
handleInputWin = undefined
|
||||
handleInputWin = handleAnyKey goToMenu
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
goToMenu :: Game -> Game
|
||||
goToMenu g = g{ state = Menu }
|
Reference in a new issue