Page 1 of 1

New Input System

Posted: Thu Apr 16, 2020 4:37 am
by Radmar
Hi,

I've recently bought dialogue system asset and I would like to know how to integrate it with new input system, so demo scene could properly work.

I couldn't find any mention of it in documentation, so I have tried to do it by myself:
1. Create new project
2. Import new input system package
3. Import Dialogue System
4. Enable USE_NEW_INPUT by Welcome WIndow
5. Upgrade EventSystem by "Replace with..." button
Those 5 steps gives working mouse and escape key.
Playing mode throws a lot of "KeyNotFoundException: Cannot find control 'joystickbutton0' as child of 'Keyboard:/Keyboard'" and I have no idea how to properly fix it.

Re: New Input System

Posted: Thu Apr 16, 2020 8:16 am
by Tony Li
Hi,

This post has an example scene.

Please inspect the Dialogue Manager's Input Device Manager component and remove these:

newInputDeviceManager.png
newInputDeviceManager.png (63.86 KiB) Viewed 348 times

Alternatively, define those inputs using all lowercase and no spaces, such as joystickbutton0, and register them with the Input Device Manager using InputDeviceManager.RegisterInputAction("joystickbutton0", yourControlForButton0).

Re: New Input System

Posted: Thu Apr 16, 2020 12:20 pm
by Radmar
Thanks!

Re: New Input System

Posted: Thu Apr 16, 2020 12:52 pm
by Tony Li
Glad to help! If you have any questions about setting that up, just let me know.