Hey I’m trying to make menus (main menu and other stuff) with controller support. I have a controller, also found out I can simulate controller input with arrows and enter keyboard buttons. In my code I check if pressed button is keyboard & controller or mouse input. If controller or keyboard input is detected it will focus the last focused button if valid, if not it will focus the first button. Every time I press a keyboard or controller button it sets the focus on the correct button. Then I try to press A on controller or Enter on keyboard and the OnClick event doesn’t fire. It only fires when I navigate to an other button and then back, after that I can click it with Enter or A. Does anyone have a clue why this is happening?
I figured it out, it was an easy fix that I’ve been cracking over my head for 2 days, but finally found an idea in an other post and it seemed logical. Anyways the problem was that I set the focus to the custom widget and not the the button inside the custom widget!!!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.