Selector with Input System Package
Posted: Tue Oct 19, 2021 6:30 pm
Hello,
I switched my project over to use the Input System Package. I checked the box in the Dialogue System Welcome Window to switch to the new input system, and most everything seems to be working without issue with the exception of the Selector component I have on my Player game object.
When I set the Use Key to a mouse button on the Selector, it does not work. As a workaround, in DefaultGetKeyDown on InputDeviceManager.cs I removed the check to ignore the mouse and added a few lines to return mouse input, which works, but I have to imagine this isn't the intended way to handle this I'm not very familiar with the details of the new input system either, so it's possible I'm missing something there too.
Is there a "proper" way to use the mouse as the Use Key? Any suggestions would be appreciated. Thank you!
I switched my project over to use the Input System Package. I checked the box in the Dialogue System Welcome Window to switch to the new input system, and most everything seems to be working without issue with the exception of the Selector component I have on my Player game object.
When I set the Use Key to a mouse button on the Selector, it does not work. As a workaround, in DefaultGetKeyDown on InputDeviceManager.cs I removed the check to ignore the mouse and added a few lines to return mouse input, which works, but I have to imagine this isn't the intended way to handle this I'm not very familiar with the details of the new input system either, so it's possible I'm missing something there too.
Is there a "proper" way to use the mouse as the Use Key? Any suggestions would be appreciated. Thank you!