Hello,
I was wondering if there is a way to detect a one-time key press from the input manager. If not, would getAxisDown(string name) and getAxisUp(string name) be a good idea to add to the next version of Unity?
No, you use GetButtonUp and GetButtonDown for key presses. An axis ranges from -1.0 to 1.0 and isn’t something that has a binary state of “down” or “not down”.
–Eric
Axes tend to have two buttons. But if you want binary behaviour, you can set the gravity and sensitivity of the axis really high in the input manager.
Thank you.