Navigating User Interface With Gamepad

Posted: 12 Dec 2022 05:04
by Orenn16

Hello,

I'm hoping someone might be able to help me with navigating the user interface wit ha gamepad such as a PS4 controller. Naninovel's support page states that the prefab interface and commands should work with a keyboard or gamepad, but when I plug my DS4 PS4 controller into my PC, I can't navigate the prefab main menu (new game, continue, etc). Instead I have to use my mouse and click on an option, as well as click to advance dialog. I'd like to do everything with a gamepad which I believe should be possible. Any advice on this? Thanks so much in advance for any guidance you can provide!


Re: Navigating User Interface With Gamepad

Posted: 12 Dec 2022 10:03
by idaot

The editor is probably not detecting the Ps4 controller (there should be a message logged when it is detected).

To make it work with USB, you'll need to download additional drivers: https://www.youtube.com/watch?v=Zhy5GG1e81Q&t=0s


Re: Navigating User Interface With Gamepad

Posted: 12 Dec 2022 11:42
by Orenn16

Quick update to this: turns out the input is working for the most part, however the sticks/ d-pad are not. If I use my mouse to select "new game" at the main menu, it works and loads the game. From there I can press the assigned button (X in my case) to advance dialog. All other buttons (R1 to skip, triangle to remove UI, etc) all work great. But as soon as I get to a choice I am unable to use the dpad or stick to select an option. Similarly, if I use the "options" button on the controller, it brings up the menu (load game, save game, settings, etc) but I'm unable to navigate the menu. Any advice on this would be immensely appreciated!


Re: Navigating User Interface With Gamepad

Posted: 12 Dec 2022 14:29
by idaot

If it works with keyboard then it should work with the gamepad. If you haven't followed the steps in the video I posted, then my suggestion is to look at the Unity forums for any reports of PS4 controllers not working correctly as UI navigation is handled by Unity's Input Manager/Input System (https://docs.unity3d.com/Manual/class-InputManager.html) (You can see which samplers Naninovel manages on top of Unity's default bindings in Naninovel's Input configuration: https://naninovel.com/guide/input-proce ... processing)

It's entirely possible you need to add new bindings for the PS4 sticks/dpad considering these controllers aren't xinput controllers which are specifically designed for Windows/Xbox.