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 /
avatar image
0
Question by Tetopia · Jan 03, 2018 at 05:51 PM · inputmousescrollscrollwheel

How to use Trackpoint middle mouse button for scrolling,

I'm using a ThinkPad Notebook. I want to use my trackpoint middle mouse button for zooming in and out, basically like the Unity Scene View responds to it (just like scrolling the scroll wheel).

Using the scroll wheel of my external mouse already works, but I can't seem to get the input from the trackpoint. In any other program on my PC it "just works" (apart from Monodevelop, but thats probably another issue). Even in the Unity Scene View it works like the scroll wheel.

Neither print(Input.GetAxis("Mouse ScrollWheel")); nor print(Input.mouseScrollDelta); output anything when using the trackpoint (but they do for the scroll wheel). I can't even get it to recognize that the middle button was pressed, none of if(Input.GetKeyDown(KeyCode.Mouse0..6)) print("Mouse0..6"); responde to it. (Scrollwheel of external mouse is Mouse2, Mouse0 and Mouse1 work just the same on trackpoint and external).

Edit: I'm using a ThinkPad T520 with W7 and it says that the driver for my "ThinkPad UltraNav Pointing Device" is up to date.

Comment
Add comment · Show 1
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 Tetopia · Jan 04, 2018 at 08:01 PM 0
Share

Now I even tried iterating through ALL $$anonymous$$eycodes, but none of them equal my middle mouse button...

foreach ($$anonymous$$eyCode k in Enum.GetValues(typeof($$anonymous$$eyCode))) { if(Input.Get$$anonymous$$eyDown(k)) print(k); }

This outputs correct for the left and right mousbutton, but nothing for the middle one...

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by niorg2606 · Jan 04, 2018 at 09:15 PM

I have a ThinkPad as well, and all I have to tell you is that the middle mouse button is NOT the scrolling part of the scroll wheel. It is like pushing the scroll wheel down on an external mouse, so that would explain why the Input.GetAxis isn't working. The reason that the GetKey isn't working is because the mouse buttons aren't keys. Try this instead with Mouse Button 3.

Comment
Add comment · Show 3 · 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 Tetopia · Jan 05, 2018 at 12:05 AM 0
Share

Hm, no that doesn't work either. "if (Input.Get$$anonymous$$ouseButtonDown(0..1)) print("$$anonymous$$ouse0..1");" does work, but none of "if (Input.Get$$anonymous$$ouseButtonDown(2..6)) print("$$anonymous$$ouse2..6");" output anything. Just the same as the "if(Input.Get$$anonymous$$eyDown($$anonymous$$eyCode.$$anonymous$$ouse0..6)) print("$$anonymous$$ouse0..6");"

avatar image niorg2606 Tetopia · Jan 05, 2018 at 12:48 PM 0
Share

Just to make sure, you are talking about the button in between the left and right mouse buttons, right?

avatar image Tetopia niorg2606 · Jan 07, 2018 at 05:06 PM 0
Share

Yes, exactly this button. The one with the blue dottet line which is "the wrong way round" inbetween the two mouse buttons with the red lines. https://i.ytimg.com/vi/Z-IY-ur-Z4g/maxresdefault.jpg

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

88 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

Related Questions

Linux and Mouse Wheel,Linux and Mouse ScrollWheel 0 Answers

How to get ScrollWheel values using a laptop touchpad? 1 Answer

Light intensity with mouse scrollwheel 1 Answer

My Mouse ScrollWheel input is missing! 1 Answer

How to check if mac OS's natural scrolling is on or off? 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