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
0
Question by mikelovesrobots · Aug 03, 2012 at 01:56 AM · inputmouseosxinput.getaxisapple

Erratic mouse Input.GetAxis values on OS X

On a few iMacs here at work, I've noticed that Unity3d occasionally produces really bizarre Input.GetAxis values for Mouse X. Like normal mouse movements would be in the range of 0.1 to 8.0, with big sweeping gestures occasionally hitting 11 -- but on these two macs, I'm seeing spikes of 70 or 90 for no reason. Just small, subtle mouse movements causing Input.GetAxis("Mouse X") to go nuts for a frame or so then it settles back down to normal values. As you can imagine, this makes mouseLook unbearable, as the character will be facing the wrong direction suddenly for no reason.

So, here's my silly debugging code:

 function LogMouseErraticBehavior() {
   var mouseX : float = Input.GetAxis("Mouse X");
   var mouseY : float = Input.GetAxis("Mouse Y");
  
   if (mouseX > 3 || mouseY > 3) {
     Debug.Log("mouse x: " + mouseX + 
                       ", mouse y: " + mouseY + 
                       ", deltaTime: " + Time.deltaTime);
   }
 }

This may be a clue: the jumping mouse movements only seem to occur while simultaneously strafing with the keyboard. Turning in a circle without touching the keyboard doesn't appear to encourage these crazy values.

Other things I've investigated that may or may not be relevant:

  • Time.deltaTime seems to be normal. It's not like there's a 0.2 second delay immediately before those mouse spikes due to some background process going nuts. They're sitting at an even 0.012 deltaTime without any real variation.

  • Swapping mice doesn't help. Both interestingly enough started with logitech mice (rather than apple-branded mice). We tried rebooting after swapping mice with the standard apple mighty mice and a couple generic USB mice we had lying around. Nothing made a difference.

  • Neither did swapping keyboards..

  • The problematic iMacs were running OSX 10.7.4 (the latest) with all the recent software updates applied.

  • Another 4 identical iMacs (same hardware and OS versions) are fine. All the apple laptops we've tried (4), and windows computers (3) are good too.

  • Full screen vs. windowed doesn't make a difference

  • OS Mouse sensitivity was set surprisingly low on both machines (about 1/2 of the slider between slow and fast)

Any ideas? I'm pretty stumped.

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

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

7 People are following this question.

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

Related Questions

How to handle Key + Mouse Wheel simultaneously? 1 Answer

Apple Mouse Scroll Wheel 0 Answers

Linux and Mouse Wheel,Linux and Mouse ScrollWheel 0 Answers

How to Move a Cube 3 Answers

OnMouse menu 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