get mouse position if TD isn't playing

Hi everyone,

We have a glsl context where we use mouse and keys to fly around. Works great our only problem is this.
When touch designer isn’t actively playing we don’t get the mouse x y positions from the “mouse in chop” , but our wasd keys still work. (even with active set to on)
We need to be able to get the mouse position if TD is playing or not playing.
Any and all hep appreciated.

you can also get the mouse coordinates with the following python:

[code]from ctypes import windll, Structure, c_ulong, byref

class POINT(Structure):
fields = [(“x”, c_ulong), (“y”, c_ulong)]

def queryMousePosition():
pt = POINT()
windll.user32.GetCursorPos(byref(pt))
return { “x”: pt.x, “y”: pt.y}

pos = queryMousePosition()
print(pos)[/code]