Quantcast
Channel: Questions in topic: "keyboard"
Viewing all articles
Browse latest Browse all 605

input manager not working correctly?

$
0
0
**everything is working fine in my code until i stumbled across a bug that makes not absolute sense.** I have code which detect whether the player is pushing left or right arrow keys to move, and it works, I have code to detect whether the player is clicking the up arrow or not to do a boost upwards, that works with and without the combination with the left and right keys, and lastly i have space to shoot. When I click only up (the boost) and click space (the shoot) it works all together (i can shoot while boosting). If i click Right, Up and Space it works ( i am able to shoot, boost and move to the right all at the same time). **Every combination of those keys works the way i want it except left, up and space ( i can boost and move left but it wont let me shoot.** I've done debug.Log and it turns out it doesn't detect the space bar when i am holding up and left ( both if i try the arrow keys on just my keyboard or just on my laptop keyboard). But when i use the arrow keys on the key pad it works fine. I've done combinations of holding left and up on my laptop key board and click the space bar on my keyboard and it works.... Why does it do this. My code is working perfectly fine i just think maybe its a unity bug or something i am missing in the input manager ( which i highly doubt, I've looked through multiple times changing thing to test it out and its just not working)

Viewing all articles
Browse latest Browse all 605

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>