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
3
Question by Sensisensic · May 13, 2013 at 02:48 PM · inputmouseinputmanagermouse button

What's the entry name for mouse buttons in InputManager?

I'd like to be able add mouse buttons 0, 1 and 2, or left, middle and right to the input manager. However, whatever wording I seem to try nothing seems to work. A search around wasn't fruitful either. So I figured I'd go for a quick question here: what are the entry names for adding mouse buttons in the input manager? Thanks!

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

2 Replies

· Add your reply
  • Sort: 
avatar image
10
Best Answer

Answer by Eric5h5 · May 13, 2013 at 03:20 PM

They're already set up by default in a new project, under "Fire1", "Fire2", and "Fire3". If you look in those you can see they use "mouse 0" etc. These names are also listed in the docs.

Comment
Add comment · Show 6 · 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 lexen1 · Nov 05, 2014 at 10:10 AM 1
Share

Is there a place that lists off all of the possible mouse buttons? I have a mouse that has left and right buttons next to the scroll wheel and I am unable to find their names in unity.

avatar image Lohoris2 · Mar 03, 2015 at 09:47 AM 0
Share

@lexen1 "$$anonymous$$ouse Buttons: “mouse 0”, “mouse 1”, “mouse 2”, …" have you tried to just enter "mouse X" with ever increasing numbers?

avatar image SamTheT · Apr 21, 2015 at 12:49 PM 0
Share

I did, mouse0 is left button, mouse1 is scroll button, BUT mouse2 isn't right mouse button, this is really annoying I tried everything from mouse0 through mouse10, but none seemed to respond to right mouse button

avatar image Eric5h5 · Apr 21, 2015 at 04:19 PM 0
Share

mouse1 is the right button, mouse2 is the middle/scroll button.

avatar image felix_of_mars · Jul 02, 2017 at 03:20 PM 0
Share

You says that it is setup by default, but not see$$anonymous$$gly in 5.6.2, as stated you need to add mouse 0 for left click in the input manager. I am pretty sure they are going out their way to make Unity more annoying now.

avatar image Eric5h5 felix_of_mars · Jul 02, 2017 at 10:17 PM 1
Share

No, Fire1 has mouse 0 as the default. At least in 5.6.1; I highly doubt it's different in 5.6.2.

avatar image
4

Answer by hawken · Oct 20, 2015 at 11:57 AM

More specifically they are listed here http://docs.unity3d.com/ScriptReference/Input.GetMouseButtonDown.html

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

19 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

Related Questions

GetAxisRaw("Mouse X") not even close to manual mouse movement 0 Answers

Object.OnMouseDown vs Input.GetMouseButtonDown 1 Answer

Touch inputs on a Desktop type device 2 Answers

Multiple Players on one Computer/Console 5 Answers

Supplying Input from Update To FixedUpdate 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