Hello all,
I'm having an issue with the game that I am making. I currently have the controls set up to use both a keyboard and a gamepad.
On the joystick the shoulder buttons turn left and right, and on the keyboard, either A/D or the left/right arrow keys turn left and right.
If I hold down the shoulder buttons on the gamepad, the character will turn until the very moment that I release the button, which is great.
However, the problem I'm running into is that the longer I hold down a key on the keyboard, the longer the character will *continue* to still turn after I have released the key. I know when working on games in the past that this problem stemmed from the keyboard storing up keypresses in the buffer, and then continuing to register them as held until it emptied. Clearing the buffer after every read resolved the issue.
Is there a way to do that in Unity?
Thanks
↧