[SOLVED] GetCursorPostion node reports 0 if game is running and the mouse hasn't moved yet

Subject says it all. My code won’t work until I jiggle the mouse. Not a great way to start a game!

This behavior isn’t related to Armory I believe (I just tested in Armory). The Armory Player window has to be first active i.e. clicked on, before the mouse coordinates are updated.

Maybe Kha or Armory has some code that can make the window active, not sure.

1 Like

ok, I did a patch to block the code until mouse movement has been detected and it seems to be fine. When I get around to a startup screen it won’t be an issue anyway, thanks!

2 Likes