Controller Input For Menus Not Being Detected

When playing with the controller you could move the stick and it would only highlight what seemed like a random button to users and  you could not navigate to other buttons. 

This was a problem for the end user  since it is confusing to the player that the first button in a menu wasn't always highlighted first for navigation and that moving the stick didn't navigate to other buttons. 

Example of the middle button highlighting
 when controller stick was moved

The reason the load button above was highlighting first is that the vertical box it was in is what was being focused on when the menu opens. This lead me to setting its containing box as the focused one instead. I didn't have to do anything to get navigation between buttons since it seems unreal has some default UI navigation for vertical boxes, horizontal boxes and nested boxes.

The controller input not being detected had to do with the input mode. If input is set to just UI gamepad input is no longer detected so setting it to UI and game resolved this issue. Just to check if there was something I was missing I did further research and it confirmed that gamepad input is no longer detected if set to  just UI.


Author: Krishnie Katie Naidoo

Posted on 11/1/2023

Comments

Popular posts from this blog

Resolving the Flying AI Bug: Boundary Fix in Level One Environment

Paying attention to Details

Revamping the player's attacks