New answers tagged

1

The problem here is (likely) really simple. You need to call Keyboard.next() in order to pop the "L key was released" item out of the Keyboard queue, otherwise it'll just stick around in there.


2

No, you should not use deltaTime for this input. Input.GetAxis("MouseX") and ..."MouseY" give you values proportional to the number of pixels the mouse has moved since the last frame So assuming the mouse is moving in one direction over this interval, the values will already naturally be larger on long frames that cover a lot of movement, and smaller on ...


Top 50 recent answers are included