LWJGL
May 22, 2012, 03:08:30 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

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



Pages: [1]
  Print  
Author Topic: Not detecting extra mouse buttons  (Read 3323 times)
grom358
Newbie
*
Posts: 5


« on: December 13, 2007, 17:40:42 »

Mouse.getButtonCount() is returning that there is 8 buttons. But it will only detect button down for buttons 0 (left), 1 (right), 2 (wheel). The side buttons 3 and 4 are not detected. Running the controller test in JInput are they are detected, they also work in everything else I have tried too.

I have a Microsoft Habu mouse. Driver version 2.01 and Firmware 2.01. Configured at 1000Hz polling rate and 2000DPI.

Code:
public void init() {
    //...
    System.out.println("No. of mouse buttons: " + Mouse.getButtonCount());
}

public void logic(int delta) {
    //...
    for(int i = 0; i < Mouse.getButtonCount(); i++) {
        if (Mouse.isButtonDown(i)) {
            System.out.println(i + " mouse button is down");
        }
    }
    //...
}
Logged
ksabo_lwjgl
Newbie
*
Posts: 13


« Reply #1 on: January 09, 2008, 16:36:46 »

I have the same issue w/ my Logitech G5. Did you ever find a workaround to this problem (other than using JInput)?

Elias/Matzon any comments on this issue?

Thanks-
Logged
Pages: [1]
  Print  
 
Jump to:  

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