Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ShockingRotom · Feb 12, 2019 at 11:15 PM · bug-perhapskeyboardinputmanagerkeyboard inputkeys

input manager not working correctly?

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)

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TheGalacticShaman · Feb 12, 2019 at 11:20 PM 0
Share

I know you don't think it will have anything to do with your code, but it will be hard for anyone to help you if you don't show what you have done. Please share your script :P

avatar image jstopyraIGG · Feb 12, 2019 at 11:23 PM 0
Share

I would carefully read your code and make sure you done have any copy-pasta stuff you've missed and forgot to edit to correct code. Also, if you post code here, we can help you better!

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

101 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Check if there is a keyboard input (not a specified key input) 2 Answers

Set Alt Positive/Negative Button input during runtime 0 Answers

Keyboard unresponsive IN NEW PROJECTS! Mouse works. Registry problems? PlayerPrefs.DeleteAll()? 0 Answers

Starting new Scene with a button pressed problem 0 Answers

Using back button to close keyboard on Android seems bugged 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges