Page 1 of 1

Input Device Manager to cancel cutscene

Posted: Wed Dec 27, 2023 3:55 pm
by OscarS
Hi!

I'm trying to stop a conversation and jump to another one when the player keeps a button pressed for some time. I use the Unity New Input System with the Input Device Manager. When I try to count the time when the button is pressed I use this:

if (InputDeviceManager.IsButtonDown("Back"))

On an update function. But it seems that it only counts "1 time" when the button is pressed and not continuously. Is there some way yo check constantly if the button is pressed with the InpuDeviceManager?

Thanks!

Re: Input Device Manager to cancel cutscene

Posted: Wed Dec 27, 2023 4:06 pm
by Tony Li
Hi,

No, the Input Device Manager only checks if a button was pressed (IsButtonDown) or released (IsButtonUp) in the current frame. It's equivalent in concept to the built-in Input class's GetButtonDown() and GetbuttonUp() methods (except it can read from the new Input System).