Controller Options
Ricardo de Peña edited this page May 4, 2014
·
2 revisions
You may pass in the following options to the controller:
Name | Description | Default Value |
---|---|---|
config | Accepts the name of the controller configuration to use or a controller configuration object, these configurations can be found here | "dualshock3" |
accelerometerSmoothing | Will apply smoothing to sixaxis data | true |
analogStickSmoothing | Will apply smoothing to analog stick data | false |
logging | Determines if errors and warnings should be logged to the console | false |
forceNodeHid | Use node-hid instead of the linux connector no matter what | false |
var dualShock4 = dualShock({
config: "dualshock4-generic-driver"
});
var dualShock3 = dualShock({
forceNodeHid : true,
analogStickSmoothing : true,
logging : true
});