Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions controllerConfigurations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Use DeviceDiscoveryHelp.js in the examples folder, using node-hid you can obtain
the vendorId and the productId need to be set to the right values, you can use node-hid to determine what these are.

### Analogs are mapped as:
~~~~ js

```js
"analogSticks" : [
{
"name" : "left",
Expand All @@ -21,10 +22,11 @@ the vendorId and the productId need to be set to the right values, you can use n
"y" : 8
}
]
```

### Buttons are usually grouped by a block but should be added as:

~~~~ js
```js
"buttons" : [
{
"name": name of the button used for events,
Expand All @@ -33,3 +35,4 @@ the vendorId and the productId need to be set to the right values, you can use n
"analogPin" : int representing the pin used for analog.
},
]
```