Cleanup, improve aiming code
This commit is contained in:
@@ -327,6 +327,9 @@ updateMouseContextGame cfig u = case u ^. uvWorld . input . mouseContext of
|
||||
where
|
||||
w = u ^. uvWorld
|
||||
aimcontext
|
||||
| Just t1 <- w ^. input . mouseButtons . at ButtonLeft
|
||||
, Just t2 <- w ^. input . mouseButtons . at ButtonRight
|
||||
, t1 > t2 = MouseGameRotate
|
||||
| ButtonRight `M.member` (w ^. input . mouseButtons) = MouseAiming
|
||||
| otherwise = MouseInGame
|
||||
mpos = w ^. input . mousePos
|
||||
|
||||
Reference in New Issue
Block a user