Hello all.
I couldn't find how to do this in the API or by searching the forum, so I wonder if someone might have some insight. I'm making a custom orbit camera by capturing the mouse move events in my eventReceiver class.
I have the mouse set to the centre of the screen and each time it moves from there I set it back again (the usual low-level way to do mouse look). Unfortunately, when I move the mouse back to the centre using SetPosition, it spawns another mouse move event, and it gets an repeating loop of events.
I know that I could use a quick and dirty fix like not resetting the cursor if it hasn't actually moved, but that still means that there's twice as many events being spawned.
Does anyone know how to disable it so that SetPosition() does not spawn a new event?
CursorControl::SetPosition spawns mouse events
That sounds like a good plan. I would still need to use setPosition but wouldn't be affected by any new events.vitek wrote:I would think the right solution would be to periodically check the cursor position instead of responding to mouse move events every time one comes in.
Thanks for the input guys.