Page 1 of 1

New Input System

Posted: Tue Aug 25, 2020 1:55 pm
by wax_lyrical
Hi Tony,
Sry to bug you with this one: error is

InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
UnityEngine.Input.get_mousePosition () (at <2db13ba0d52343228aa9892c408fb49a>:0)
PixelCrushers.DialogueSystem.Selector.GetSelectionPoint () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Interaction/Selector.cs:537)
PixelCrushers.DialogueSystem.Selector.Run2DRaycast () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Interaction/Selector.cs:375)
PixelCrushers.DialogueSystem.Selector.Update () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Interaction/Selector.cs:282)

New input is working elsewhere in my code.

Here are the 2 relevant components
SElector.png
SElector.png (53.75 KiB) Viewed 2258 times
SElector.png
SElector.png (53.75 KiB) Viewed 2258 times
I'd like to use the controller left thumb joy when mouse is not available: how to set this up in the Dialog System, please?

Re: New Input System

Posted: Tue Aug 25, 2020 2:47 pm
by Tony Li
Hi,

Select menu item Tools > Pixel Crushers > Dialogue System > Welcome Window. Then tick the Use New Input checkbox. In the folder Plugins / Pixel Crushers / Common / Documentation, examine the Input Device Manager PDF. The last section explains how to set up the new input system with the Dialogue System.

Re: New Input System

Posted: Wed Aug 26, 2020 9:49 am
by wax_lyrical
Hi Tony

Thx for the reply! I've done as requested, registered the controls, ticked the use input box, read the manual; but I can't see how this has effected the InputDeviceManager . I'm actually trying to setup an MS 360 Gamepad controller to work with the DialogSystem. How do I remove the Joystick and register a gamepad pls?

Re: New Input System

Posted: Wed Aug 26, 2020 12:30 pm
by wax_lyrical
OK - I figured it out! Thanks for the help

Re: New Input System

Posted: Wed Aug 26, 2020 1:16 pm
by Tony Li
Happy to help!