#7 Query for number of mouse buttons

closed
nobody
None
5
2008-08-09
2008-03-21
Korval
No

It would be good to have a query for the number of available mouse buttons. This way, the user of OIS can present to the player a list of mouse buttons that the player can select from.

Discussion

  • Phillip Castaneda

    • status: open --> pending
     
  • Phillip Castaneda

    Logged In: YES
    user_id=947604
    Originator: NO

    Tricky, since I simply get mostly an event which happens when a button is clicked as opposed to enumeration. Though, you are usually safe always assuming there are 2 buttons (even on OSX it is safe, as most users will plugin a mouse with 2 buttons - but, don't make the second button 100% needed). But anyway, a good way to do action mapping/user configuration is to allow the user to select the action to modify, and then you simply wait for the user to hit a button/key/axes/mouse button/etc to bind to that action. That way, you don't need to really provide the user with a list. Hence, I don't think this feature will be brought into the engine, as mice are rather simple and 90% there are only 2 buttons anyway.

    Thanks for the suggestion anyway, but I don't think I will be able to do this. However, if you could offer a patch that worked under Linux/Windows/OSX, I would have no choice but to add it in ;-)

    - Phillip

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks