- Home /
Quirk in Input.GetAxis
Hello!
I'm currently using Input.GetAxis both in horizontal and vertical to control player movement.
While holding down the left control key, however, the horizontal axis no longer returns any values while the vertical axis continues as normal.
My code has no functionality attached to the left control key.
I'm using a mechanical keyboard with full n-key rollover, so it's not a hardware problem of too many keys pressed at the same time.
An explanation as to what's going on and more importantly a solution or work around would be greatly appreciated!
Is this behavior still occurring while running a build of the game?
Could you post some code please ? And if you comment your GetAxis section, does something happens ?
Wow so I guess this problem only exists in editor mode. Actually building the game and running it solves the problem.
I guess it'll just make testing inconvenient, then.
As I thought. Happens to me as well and with several other key combinations.