Not detecting extra mouse buttons

Started by grom358, December 14, 2007, 01:40:42

Previous topic - Next topic

grom358

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.

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");
        }
    }
    //...
}

ksabo_lwjgl

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-