I’m using this function on my character to control mouse capture. It’s not working very well.
My camera has suddenly become click and drag both in PIE and standalone. It shouldn’t be.
UPDATE
I’ve gotten further with an updated function:
The problem now is that the UE4 window loses focus after I commit on a text box. I have to click it again to regain focus. This seems like extremely bizarre behavior and I can’t quite understand why the engine should ever do that. Here’s what my text box commit event looks like:
It seems that for some reason when you enter text and press Enter not only does the On Enter exec path fire but Default and On Cleared also fire. So, when On Cleared fires I perform a simple reset operation (which also happens to be the same one that the controller calls when beginning text entry).
This allows you to type a message, press Enter, type another message, press Enter…
The behavior is a bit odd IMHO and isn’t documented very well but this works at least.