OSVR / OSVR-Core

The core libraries, applications, and plugins of the OSVR software platform.
Apache License 2.0
328 stars 124 forks source link

Right Joystick Button doesn't work with Razer Hydra #344

Open JeroMiya opened 8 years ago

JeroMiya commented 8 years ago

Not sure if this is a hardware issue on my hydra or possibly a bug in the vrpn implementation, but the right joystick button won't trigger button events or state. I tested all the other buttons and they all produce button events except the right joystick button. Found while implementing the controller input module for OSVR-Unreal.

rpavlik commented 8 years ago

I can try this out when I get back home.

betavr commented 8 years ago

I've just run into this bug.

The problem is that the callback receives an invalid OSVR_ButtonState for this particular button, with a value that changes with every restart of the application. Example invalid state values that I've seen: 80, 72, 168.

Also the callback for the right controller's joystick button (/controller/right/joystick/button) is called continously when the button is kept pressed in.

I very much look forward to seeing a fix for this, as my steamvr-osvr controller integration project depends on the hydra driver heavily.

betavr commented 8 years ago

I noticed an error in plugins/multiserver/com_osvr_Multiserver_RazerHydra.json, which could be related:

"button": {
      "count": 15
}

The button count should be 14, as there are 7 on each controller.