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 /
This question was closed Dec 15, 2012 at 08:56 AM by burnpsy for the following reason:

Other

avatar image
1
Question by burnpsy · Jun 24, 2012 at 08:10 AM · c#inputmouse

Checking if the Mouse Has a Middle Button

The targeting system in my game is turned off by default and is set up to be toggled using the middle mouse button. But I can't guarantee that the player will have a middle mouse button on their mouse.

I set it to one of the axes, so the player can change it as necessary when starting the game up, but is there any way to check if the mouse has a middle button to begin with, so I can prompt the player to reboot the game and choose a different button for it?

Comment
Add comment · Show 8
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 commodore · Jun 24, 2012 at 08:41 AM 0
Share

Unity doesn't have the option to expose the input manager so I doubt it

avatar image Mizuho · Jun 24, 2012 at 08:47 AM 0
Share

Ins$$anonymous$$d of trying to find this, use the alternative: clicking both the left and right buttons at the same time (roughly) = middle mouse click. I tried looking for this, but you can only check for the existence of joysticks.

avatar image burnpsy · Jun 24, 2012 at 09:06 AM 1
Share

Sadly, making the player hit both the left and right mouse buttons simultaneously would make them do a ranged and melee attack at the same time as they turn on the targeting system, which would muck things up. The alternative I'm thinking of if this isn't possible is to have the player answer whether they have one or not, in which case the targeting system is turned on by default.

avatar image Drakestar · Jun 24, 2012 at 09:48 AM 2
Share

You might be overthinking this. $$anonymous$$ake sure that all of your inputs are fully configurable, ship with the intended control scheme, and point out the configuration options during the game. If somebody doesn't have a $$anonymous$$$$anonymous$$B they can rebind the input. I can't think of a commercial PC game that goes beyond the steps above. Sure, it would be nice if they did - but in the grand scheme of things, you might want to apply your efforts elsewhere.

avatar image burnpsy · Jun 24, 2012 at 11:15 AM 1
Share

Fair enough.

Show more comments

1 Reply

  • Sort: 
avatar image
0

Answer by TheDavil86 · Jun 24, 2012 at 11:19 AM

Well if you don't have a middle mouse, then you still have the option of using any other button. I suggest just making an alt positive button for that particular button.

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

Follow this Question

Answers Answers and Comments

10 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

Related Questions

Standalone gets mouse input when in background UNET 1 Answer

Keep objects current rotation, with Input Mouse X 0 Answers

How to keep my cursor inside window boundaries 0 Answers

Distribute terrain in zones 3 Answers

C# Mouse Look (Input.GetAxis("MouseX&Y")) 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