Set input mode UI only makes inputAxis Value stuck

Hi,

when I use “set input mode UI only” while my character is moving my character keeps moving on his own when going back to “input mode game” until I press W and release W again.

So for some reason the Input Axis value gets stuck on 1 even thought I am not pressing any key. Until I press and release the key then the Axis value becomes 0 again.

Is there a workaround for this? Can I reset an Input Axis somehow or anything like this?
Thanks for helping :slight_smile:

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks

I’ve just noticed this too (4.22).

  1. If you had an analog input axis held when “set input mode UI only” got turned on, then it will keep passing through that axis value while the mode is on. You can manually filter this out with “Set ignore move input” or with your own “Input Is Enabled” bool in your playercontroller. BUT
  2. Even if you do that, when you turn back on “input mode game”, the input axis still triggers events with a non-zero value for a while afterward… (like it has “saved up the events” during the UI-only input mode time) not sure how to get around this in blueprint just yet :confused:

If I ever get close to shipping the game, will most likely have to fix it in C++

Use “Stop Movement Immediately” before creating, displaying or changing input mode.