Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by LocalNoob · Aug 17, 2020 at 08:40 PM · inputbugbug-perhapsgetkeydown

When holding down shift cant use the "a" key, an extremely weird bug!

Ok this will sound ridiculous. When i hold down the shift key in unity, the "a" key doesnt work, ie. no getkeydown events for "a" or getaxisraw("Horizontal") in the left direction work! And if press shift key while holding the "a" key and then release the a key, unity keeps receiving the GetKey(KeyCode.A) events non-stop and stops when i click the "a" key again. Sounds ridiculous i know, never faced a bug like this before. Something to note is, the a key works fine with shift on my system, i mean can type caps "A". I am using the linux editor for unity and I tried my laptops and external keyboards. I never faced anything similar in unity before and the a key always worked fine with shift!! Can anyone try running this script and tell me if u can use the a key while shift is down. I am using the latest unity 2020.1.2f1. If the script works for you guys I feel like it could be the linux editor issue, new unity version issue, my systems specific issue(havent developed much on this system and since i use arch linux could be some tricky thing i might need to setup :/). Thanks! Hope it is actually a bug and not me being a complete fool!

 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 
 public class testA : MonoBehaviour
 {
     // Start is called before the first frame update
     void Start()
     {
         
     }
 
     // Update is called once per frame
     void Update()
     {
         if(Input.GetKeyDown(KeyCode.A)){
             print("a key down");
         }
         
     }
 }
 
 


Update 1: I doubt it is my script since i removed it and only had 1 script that registered the "a" key down event and again it didnt work if i held down shift!

Comment
Add comment · Show 4
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 Batuhan13 · Aug 17, 2020 at 08:48 PM 0
Share

Hi mate could you try this script with changing running input button. Is problem occured again or not thanks.

avatar image LocalNoob Batuhan13 · Aug 17, 2020 at 09:04 PM 0
Share

Oh yeah i completely removed the shift button and the running bit from the script. The a key still doesnt respond while shift key is down

avatar image LocalNoob Batuhan13 · Aug 17, 2020 at 09:06 PM 0
Share

I have actually tried a test script (updated my answer) and the a key doesnt respond while shift is down even in that simple one

avatar image Batuhan13 LocalNoob · Aug 18, 2020 at 08:38 AM 0
Share

Actually I have never seen a problem like this before =/ .Could you check your keyboard from online keyboard debugger if problem still occuring then there is a problem about your keyboard else I could help much more further =/

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by mphe_ · Aug 19, 2020 at 01:35 PM

I experience the same bug on Linux in Unity 2019.4.8. However, it only happens in the Editor, not in a build.

It could be related to this issue.

Comment
Add comment · Share
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
0

Answer by Creeperreaper08_ · Aug 19, 2020 at 01:39 PM

You might want to try: Input.GetAxis("Horizontal"). That is if you are using it for a control for a character. If you are then also get rid of the D script for this will work with both. If you are not using this for a character control script then I don't know what the problem is.

Comment
Add comment · Share
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

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

177 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 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

Unity sometimes misses Mouse Button Release 1 Answer

Input.GetKeyDown doesn't work with several keys 1 Answer

Why is GetKeyDown returning false when provided with string from .inputString? 2 Answers

Enter/Exit Vehicle with the same key? 2 Answers

How to prevent AudioSource distortion? 1 Answer


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