Work on terminals: allow scrolling to get default inputs
This commit is contained in:
@@ -131,8 +131,11 @@ rotateCamera cfig w
|
||||
| keyr = rotateCameraBy (-0.025) w
|
||||
| otherwise = ifConfigWallRotate cfig w
|
||||
where
|
||||
keyl = SDL.ScancodeQ `S.member` _keys w
|
||||
keyr = SDL.ScancodeE `S.member` _keys w
|
||||
keyl = SDL.ScancodeQ `S.member` _keys w && notAtTerminal w
|
||||
keyr = SDL.ScancodeE `S.member` _keys w && notAtTerminal w
|
||||
|
||||
notAtTerminal :: World -> Bool
|
||||
notAtTerminal w = isNothing $ w ^? hud . hudElement . subInventory . termParams . termInput . _Just
|
||||
|
||||
--zoomCamBy :: Float -> World -> World
|
||||
--zoomCamBy x w = w {_cameraZoom = max (_cameraZoom w + x) 0.01}
|
||||
|
||||
Reference in New Issue
Block a user