- Home /
New Input System - how do I get what key is being pressed?
I don't know if this has been asked before, but I started learning the new input system today. What I'm interested in knowing is how I would get the name of the key/button that is currently being pressed (Such as left and right for the horizontal inputs). Is there a way in the system that can be used to accomplish this?
Answer by Harry_Drew · May 28, 2021 at 02:15 PM
https://forum.unity.com/threads/find-out-which-key-was-pressed.385250/ this may help. However, as the thread says its inefficient and just checking to see if a single key is pressed would be more efficient. Cheers
The solutions presented on this link are all for the old input system.
Your answer

Follow this Question
Related Questions
what are the single joystick prefab's inputs for the input manager 1 Answer
Input System multiple actions on same keybind 0 Answers
Missing Inputs Error 1 Answer
How to detect inputs with New Input System while game is unfocused? 1 Answer
Using DPad/Joystick in "new" InputSystem as digital rather than analog 1 Answer