When a user clicks/hits the "Gamepad Trigger" button, the prompt will become "Press trigger" and the mod would try to get the next button the user presses and write it into the prompt field. However, occasionally this would throw the exception in the image and stop the prompt from updating. The other parts (getting the next button and setting up the trigger button) still works.
When a user clicks/hits the "Gamepad Trigger" button, the prompt will become "Press trigger" and the mod would try to get the next button the user presses and write it into the prompt field. However, occasionally this would throw the exception in the image and stop the prompt from updating. The other parts (getting the next button and setting up the trigger button) still works.
Code: https://github.com/greydust/mhrise-falbg/blob/f8bcf3d717d422258a31879f10d9925e665a5132/src/reframework/autorun/falbg/native_ui.lua#L19