incorporate in example02
This commit is contained in:
parent
85c6288f50
commit
efbfe14fe8
1 changed files with 3 additions and 2 deletions
|
@ -126,8 +126,9 @@ handle (SDL.MouseMotionEvent dat) = do
|
|||
ud <- getAffection
|
||||
|
||||
nmap <- return $ M.adjust
|
||||
(updateProperty ("y", G.PropertyDouble (fromIntegral (y - 10))) .
|
||||
updateProperty ("x", G.PropertyDouble (fromIntegral (x - 10)))
|
||||
(updateProperties $ props $ do
|
||||
prop "x" (fromIntegral (x - 10) :: Double)
|
||||
prop "y" (fromIntegral (y - 10) :: Double)
|
||||
)
|
||||
"rect"
|
||||
(actors ud)
|
||||
|
|
Loading…
Reference in a new issue