Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them has been replaced with a symlink. Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still be present.
10 lines
No EOL
367 B
JavaScript
10 lines
No EOL
367 B
JavaScript
var MAPPING_NAME = "com.highfidelity.rightClickExample";
|
|
var mapping = Controller.newMapping(MAPPING_NAME);
|
|
mapping.from(Controller.Hardware.Keyboard.RightMouseClicked).to(function (value) {
|
|
print("Keyboard.RightMouseClicked");
|
|
});
|
|
Controller.enableMapping(MAPPING_NAME);
|
|
|
|
Script.scriptEnding.connect(function () {
|
|
Controller.disableMapping(MAPPING_NAME);
|
|
}); |