How to use Hydras?


#1

If you start up Interface with a pair of Hydras plugged there are some obvious changes, like your avatar’s hands moving as you move the Hydras. … And some non-obvious changes, like pulling a trigger in build mode creates a voxel. … And no doubt many capabilities I’ve not yet discovered.

Is there any information somewhere on how to use Hydras and all the options and capabilities?

If not, perhaps a wiki page is in order?


#2

Razer has a wiki here, although it’s “impressively empty” by their own admission, but there’s some other links and some info, might be useful.


#3

I’ve added a wiki page on how to use Razer Hydras, the best that I can establish: https://github.com/highfidelity/hifi/wiki/Razer-Hydra-Operation

Note: The right joystick’s forwards/backwards action seems to be back-to-front to me.


#4

I wrote a test script that @Judas was kind enough to test for me and report back the results, here’s an example script to show how to read the buttons from hydra controllers.

Thanks @Judas for the help.

// Reading Hydra Buttons
// Left Controller	Right Controller
// Center   = 1	        Center   = 7
// Button 1 = 2		Button 1 = 8
// Button 2 = 3		Button 2 = 9
// Button 3 = 4		Button 3 = 10
// Button 4 = 5		Button 4 = 11
// Trigger  = 6	        Trigger  = 12

// Sample script to read Button 2 on the right controller


var BUTTON_2 = 9;

function hydraEvent(deltaTime) {

  if (Controller.isButtonPressed(BUTTON_2) {
  // button two has been pressed... do something...
}

Script.update.connect(hydraEvent);