Skip to content

Commit 77bb4e9

Browse files
committed
Using appropriate API for FeelerFacet.
1 parent 435cde4 commit 77bb4e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Nu/Nu/World/WorldFacets.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,10 +944,10 @@ type FeelerFacet () =
944944

945945
static let handleIncoming evt world =
946946
let entity = evt.Subscriber : Entity
947-
if MouseState.isButtonDown MouseLeft &&
947+
if World.isMouseButtonDown MouseLeft world &&
948948
entity.GetVisible world &&
949949
entity.GetEnabled world then
950-
let mousePosition = MouseState.getPosition ()
950+
let mousePosition = World.getMousePosition world
951951
entity.SetTouched true world
952952
let eventTrace = EventTrace.debug "FeelerFacet" "handleIncoming" "" EventTrace.empty
953953
World.publishPlus mousePosition entity.TouchEvent eventTrace entity true false world

0 commit comments

Comments
 (0)