Strange situation. I would like to be enter a free look mode when the right mouse button is held. Wrote a simple toggle to enable/disable a variable with a press/release event for an action mapping which is bound to right click. Works great the first time, after that though it completely stops.
Trying to figure out what was going on here I added the print events to press/release. The first time it works as you would expect, click in followed by click out when the right mouse is released. Every time after that though there are no "click in"s being reported, it still registers the release and you can get as many "click out"s as you like but it seems to stop recognizing the mouse being pressed in even as it recognizes it being released however many times you like.
Does anyone know what might be going on here?
Side question, tried changing the binding to a keyboard button. That works without any problem except the viewport only tracks if a mouse button is being held. Doesn’t matter which but why? Does the engine only track mouse movement if a button is being held? Do I need to capture the mouse?