Rather than using a mouse, I\'m using a Leap Motion. It\'s a motion sensing device than allows fingers, hands, and gestures to be used rather than a mouse.
I have code t
You don't actually need to simulate events to achieve this (and simulating events probably makes it a bit harder than it needs to be). You simply need to match the leap pointable to a node, set its fixed
property to true to prevent the force layout from updating its position and move the node according to the motion of the pointable.
If I understood what you're doing correctly, I think I've already implemented that here. The source is available here.