LWJGL
May 25, 2013, 12:48:19 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [FIXED] Mouse buttons beyond the first 3 don't work  (Read 2001 times)
avm1979
Regular nerd
**
Posts: 90


WWW
« on: September 19, 2011, 09:37:05 »

I'm getting multiple reports from players that mouse buttons beyond the first 3 (left, right, scrollwheel click) don't work - apparently, just not getting any events for those clicks with a org.lwjgl.input.Mouse.poll(). Using LWJGL 2.7.1, btw.

Couldn't verify this myself (only have a 3-button mouse atm), but searching around the forum I found these couple of threads, but they were rather old so I thought I'd post a new one here.

Is this a known problem? Is there a chance of the extra mouse buttons getting recognized in a future release?

Any info would be greatly appreciated!
Logged

kappa
Administrator
Nerdus Imperius
*****
Posts: 1113



« Reply #1 on: September 28, 2011, 15:06:52 »

just curious, which OS are you testing on? would allow narrowing down the issue a little more. A quick look at the windows implementation doesn't show any limit but the OS X implementation looks like it might be hardcoded for 3 buttons (left, right and middle).
Logged
avm1979
Regular nerd
**
Posts: 90


WWW
« Reply #2 on: October 04, 2011, 09:44:17 »

Hmm, it seems like they're actually running into it on Windows, but I'm not 100% sure.

I'll see if I can wrangle a mouse with some extra buttons to reproduce the issue.
Logged

avm1979
Regular nerd
**
Posts: 90


WWW
« Reply #3 on: October 05, 2011, 13:42:00 »

Ok, tested with this mouse on Windows XP.

It's got a couple of extra buttons - back, forward, and zoom. The back and forward work (in the browser), but none of them seem to generate mouse events in LWJGL.
Logged

Bitza
Newbie
*
Posts: 1

Customized to be criticized


« Reply #4 on: December 17, 2011, 09:44:43 »

I'm having the same issue.

I've tried running the same code on both Linux and Windows using the same mouse, but only 3 buttons ever register (0, 1, and 2; that is left-click, right-click and middle-click) while my mouse has 8 available (a back and forward button that works with browsers and non-lwjgl games, as well as 3 bonus buttons near the mouse wheel). Here is my mouse: Link to mouse on newegg.

When I call Mouse.getButtonCount() I get 8 on Windows, but only 3 on Linux.

Hopefully this information can help narrow the problem down some.
Logged
Matzon
Administrator
Demigod
*****
Posts: 2239



« Reply #5 on: January 29, 2012, 12:30:32 »

I comitted a change (r3734), please check on windows now. Should cover button 4 and 5. Not sure how to read 5+ buttons ...
Logged

kappa
Administrator
Nerdus Imperius
*****
Posts: 1113



« Reply #6 on: February 01, 2012, 01:52:32 »

committed a change to fix the 3 mouse button limit on Linux too, which should now support mice with up to 256 buttons.

marking RFE as fixed.

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!