Complete stritifying points
This commit is contained in:
+3
-4
@@ -47,10 +47,9 @@ handleEvent' e = case eventPayload e of
|
||||
_ -> Just
|
||||
|
||||
handleMouseMotionEvent :: MouseMotionEventData -> World -> Maybe World
|
||||
handleMouseMotionEvent mmev w = Just $ w & mousePos .~
|
||||
(fromIntegral x - 0.5*getWindowX w
|
||||
,0.5*getWindowY w - fromIntegral y
|
||||
)
|
||||
handleMouseMotionEvent mmev w = Just $ w & mousePos .~ V2
|
||||
(fromIntegral x - 0.5*getWindowX w)
|
||||
(0.5*getWindowY w - fromIntegral y)
|
||||
where
|
||||
P (V2 x y) = mouseMotionEventPos mmev
|
||||
|
||||
|
||||
Reference in New Issue
Block a user