- Home /
Question by
Kakkapylly · Jul 18, 2019 at 03:13 PM ·
c#2dkey
How do i detect if key is not pressed
I need to simply detect if LeftShift is not pressed, i tried GetKeyUp, but it detects when the key is pressed and then relased but what about then you have never pressed the key, then it doesn't work????
Comment
Best Answer
Answer by BradyIrv · Jul 18, 2019 at 03:16 PM
if(Input.GetKey(KeyCode.LeftShift) == false)
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Find point of top of rotated sprite 1 Answer
Getting stretched image UI object bounding rect/size? 0 Answers
Particle System On Key Press 2 Answers