File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ The entire customization for this library is done through the options object tha
39
39
This can be as simple as passing nothing, are as advanced as passing dozens of options.
40
40
41
41
```
42
-
42
+ var options = {};
43
+ GameController.init( options );
43
44
```
44
45
45
46
Below is a list of the possible options, and what each does.
@@ -95,8 +96,7 @@ Examples
95
96
```
96
97
GameController.init();
97
98
```
98
-
99
- ** DPad on left, 2 buttons on right**
99
+ ![ http://clay.io/images/controller/1.png ] (GamePad 1)
100
100
101
101
** Joystick on left, 1 button on right**
102
102
```
@@ -120,6 +120,8 @@ GameController.init( {
120
120
}
121
121
} );
122
122
```
123
+ ![ http://clay.io/images/controller/2.png ] (GamePad 2)
124
+
123
125
** Joysticks on both sides**
124
126
```
125
127
GameController.init( {
@@ -143,6 +145,7 @@ GameController.init( {
143
145
}
144
146
});
145
147
```
148
+ ![ http://clay.io/images/controller/3.png ] (GamePad 3)
146
149
147
150
** Two large buttons at bottom**
148
151
```
@@ -159,6 +162,7 @@ GameController.init( {
159
162
right: false
160
163
} );
161
164
```
165
+ ![ http://clay.io/images/controller/4.png ] (GamePad 4)
162
166
163
167
These examples are just the start - the customization allows for quite a bit to be done,
164
168
and of course, the code can always be edited as well.
You can’t perform that action at this time.
0 commit comments