Fix camera rotation double click bug
This commit is contained in:
@@ -139,6 +139,7 @@ rotateCamera :: Configuration -> World -> World
|
|||||||
rotateCamera cfig w
|
rotateCamera cfig w
|
||||||
| Just ltime <- pkeys ^? ix SDL.ButtonLeft
|
| Just ltime <- pkeys ^? ix SDL.ButtonLeft
|
||||||
, Just rtime <- pkeys ^? ix SDL.ButtonRight
|
, Just rtime <- pkeys ^? ix SDL.ButtonRight
|
||||||
|
, rtime > 0
|
||||||
, ltime > rtime =
|
, ltime > rtime =
|
||||||
w & wCam . camRot -~ rotation
|
w & wCam . camRot -~ rotation
|
||||||
| otherwise = ifConfigWallRotate cfig (w ^. input . mouseButtons) w
|
| otherwise = ifConfigWallRotate cfig (w ^. input . mouseButtons) w
|
||||||
|
|||||||
Reference in New Issue
Block a user