Vive controller mapping


#1

Hi

I am currently trying to change the mapping of the button on the Vive controller. I am planning to change the left menu button to edit button (when clicked, will open edit menu so user could scale or rotate models). Does anyone know how to change the mapping of the menu button? I found var MAPPING_NAME = “com.highfidelity.handControllerGrab”; in handControllerGrab.js, but I do not know how to change the mapping of the menu button.

Thanks a lot.


#2

Oh, I just found the JSON file that contains the mapping information.

I guess now I need to figure out how to mapping the menu button to activate edit function.


#3

There’s some pretty good documentation on how to programatically change mappings in this article…

http://jsref.docs.highfidelity.com/docs/controllerapi-overview


#4

Thanks a lot.
I will go through the document.