We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 435cde4 commit 77bb4e9Copy full SHA for 77bb4e9
Nu/Nu/World/WorldFacets.fs
@@ -944,10 +944,10 @@ type FeelerFacet () =
944
945
static let handleIncoming evt world =
946
let entity = evt.Subscriber : Entity
947
- if MouseState.isButtonDown MouseLeft &&
+ if World.isMouseButtonDown MouseLeft world &&
948
entity.GetVisible world &&
949
entity.GetEnabled world then
950
- let mousePosition = MouseState.getPosition ()
+ let mousePosition = World.getMousePosition world
951
entity.SetTouched true world
952
let eventTrace = EventTrace.debug "FeelerFacet" "handleIncoming" "" EventTrace.empty
953
World.publishPlus mousePosition entity.TouchEvent eventTrace entity true false world
0 commit comments