From a4b94e2cb8947a2bbeb67d07a7f806078ca6e859 Mon Sep 17 00:00:00 2001 From: ricardo Date: Thu, 24 Apr 2014 10:11:01 -0400 Subject: [PATCH] incorrect event name on example file, needed to define correct json structure for ds4 --- controllerConfigurations/dualShock4-generic-driver.json | 4 +++- examples/consolePrintControllerEvents.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/controllerConfigurations/dualShock4-generic-driver.json b/controllerConfigurations/dualShock4-generic-driver.json index 9678cc0..1113aa0 100644 --- a/controllerConfigurations/dualShock4-generic-driver.json +++ b/controllerConfigurations/dualShock4-generic-driver.json @@ -144,5 +144,7 @@ "buttonBlock": 6, "buttonValue": "0x80" } - ] + ], + "motionInputs" : [], + "status" : [] } diff --git a/examples/consolePrintControllerEvents.js b/examples/consolePrintControllerEvents.js index 49112d8..e6b1eac 100644 --- a/examples/consolePrintControllerEvents.js +++ b/examples/consolePrintControllerEvents.js @@ -37,7 +37,7 @@ var printcontrollerEvents = function(controller, controllerConfiguration) { controller.on(controllerConfiguration.buttons[i].name + ":press", pressed); controller.on(controllerConfiguration.buttons[i].name + ":release", released); controller.on(controllerConfiguration.buttons[i].name + ":analog", analog); - controller.on(controllerConfiguration.buttons[i].name + ":hold", analog); + controller.on(controllerConfiguration.buttons[i].name + ":hold", hold); } //subscribe to all the status events: