Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
1
Question by Maniacbob · Mar 02, 2016 at 01:35 PM · inputmousemouseclick

Left Mouse doesn't register click when keyboard button is pressed

My game doesn't register the left mouse button being clicked down using Input.GetMouseButtonDown when any key on the keyboard is held down regardless of whether the key does anything. The right mouse button doesn't have any such trouble. I've isolated the button from all other variables and even tested it in other scripts but the outcome is the same. The button only fires when no key has been held down on the keyboard for a second or two. Ive tried searching the entire project and there doesnt appear to be anything else acting on the mouse button. Does anyone know what could cause this?

Thanks.

Comment
Add comment · Show 3
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 Glurth · Mar 02, 2016 at 04:39 PM 0
Share

I just created a test project, with a single object that displays the results of Input.Get$$anonymous$$ouseButton(). I didn't get the same results as you. Perhaps it's a system issue? I'm using a pc- no macros enabled. Another thought, perhaps you are not ACTUALLY checking the mouse when you are holding down a key? a Debug.log showing BOTH a true and false result from your Input.Get$$anonymous$$ouseButton(), would confirm/refute that.

avatar image Maniacbob Glurth · Mar 14, 2016 at 06:35 AM 0
Share

I think it had something to do with my laptop. I moved my project over to my desktop and it worked right away without changing anything. Not sure what's up with my laptop but that's a completely different problem. Thanks though.

avatar image rakatan · Jan 02, 2018 at 08:41 PM 0
Share

got exactly the same problem... after reading this tested with the right mouse button - that one works fine...

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by rakatan · Jan 02, 2018 at 08:53 PM

apparently it was windows - see https://superuser.com/questions/658095/using-keyboard-disables-touchpad-left-button-for-a-second-on-acer-laptop-in-wind

especially this part:

On my Windows 10 laptop, the proper setting to allow simultaneous use of the keyboard and the touchpad's left mouse button is:

Settings > Devices > Touchpad (left nav) > Touchpad Sensitivity (dropdown) > Most Sensitive

Comment
Add comment · Show 1 · 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 Bergquist · Apr 08, 2018 at 05:32 PM 0
Share

On Windows 8.1 this was found at: PC and devices > $$anonymous$$ouse and touchpad > "Touchpad" section Under explanation: "To help prevent the cursor from accidentally moving while you type, change the delay before clicks work." (dropdown) > No delay (always on)

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Detect mouse inputs when the scene is changing to another scene. 2 Answers

How can I disable mouse input completely? 3 Answers

How to control global mouse 0 Answers

Mouse Input for Build Mode Windows are switched 0 Answers

Mouse Cursor Problems,PLEASE HELP ME,I have cursor problems 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