New Input System only sometimes registering release of key
In relation to the new input system. Firstly here is my code: https://pastebin.pl/view/38304a6a
Two (technically 4) classes are contained in the pastebin above. Firstly my input manager and secondly, the car controller. I don't believe there's anything fundamentally wrong with the code. I believe it's more likely an issue with my setup or from a little research around the web, an issue with my operating system. I'm running Mac OSX High Sierra with Unity Version 2021.1.15f1
So my issue is, the turn event cancels whenever it wants to. There's no logic to it. I have added a log for the phase of the turn event. The console shows the event starting or being performed and then canceling. The problem, as you'll see in the video, is that I'm holding forwards and just tapping the left arrow key. I don't hold it down. You can see from my key cast in the bottom left that all I'm doing is tapping the key. I press the key at just before the 18 second mark and after a very very short time (before the 19 second mark) release the key. The key press doesn't cancel until the 22 second mark.
This issue seems to be very inconsistent. The time it takes before unity recognises that the button is no longer being pressed ranges from half a second to up to 5 or sometimes 6 seconds.
When unity does recognise that I'm no longer pressing the button, I have not done anything to cause it to update. Ie, I don't have to press any buttons or move the mouse or let go of forwards or do ANYTHING for unity to randomly realise I'm not pressing the button.
Here is the video: https://streamable.com/wn50lw
And here are some images to show my input settings etc: https://ibb.co/stsbQZP https://ibb.co/kmtc9tC https://ibb.co/Jtrv5Wq
Note that the inverted processor has been removed since taking these screenshots.
Your answer
Follow this Question
Related Questions
New Input System issue with UNet/Mirror Multiplayer 1 Answer
Player input manager "Player Joined Event" is firing but the "Player Left Event" is not! Why? 1 Answer
Porting to mobile how to assign input manager axes to GUIButtons. 0 Answers
How to rotate Z axis through Right Joystick (For 2D Topdown Game) 0 Answers
How can I change the submit button in the Standalone Input Manager? 0 Answers