Showing the changes to examples/example/scripts/controllerScriptingExamples.js (1 of 5 files). Show all
Unified · Split
| @@ -11,6 +11,12 @@ · 10 unmodified lines | ||
| 11 | 11 | |
| 12 | 12 | // Assumes you only have the default keyboard connected |
| 13 | 13 | |
| 14 | +Object.keys(Controller.Hardware).forEach(function (deviceName) { | |
| 15 | + Object.keys(Controller.Hardware[deviceName]).forEach(function (input) { | |
| 16 | + print(deviceName + "." + input + ":" + Controller.Hardware[deviceName][input]); | |
| 17 | + }); | |
| 18 | +}); | |
| 19 | + | |
| 14 | 20 | // Resets every device to its default key bindings: |
| 15 | 21 | Controller.resetAllDeviceBindings(); |
| 16 | 22 | |