- Home /
Question by
StarHunter32 · May 25, 2014 at 03:16 PM ·
inputbuttonkey pressedpresspressing
On button press/hold = input from a keyboard?
Hello. I'd like to ask is there a way to simulate keyboard input when I press an OnGUI button? For example the horizontal axis to be become -1 on button hold.
Thank you.
Comment
Answer by robertbu · May 25, 2014 at 03:17 PM
Nope, sorry. You'll have to code it yourself. Note that querying 'Horizontal' is only indirectly keyboard input.
Your answer
Follow this Question
Related Questions
Is there any function to check how long a button is pressed? 2 Answers
Ensuring that a button is released before checking that it's pressed? 2 Answers
Input press to play different animation to input hold? 0 Answers
Action executed with more than one key? 1 Answer
Why does the keyboard control what button is selected? 2 Answers