File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,14 @@ void loop()
64
64
65
65
// Reset buttons
66
66
Serial.println (" No pressing buttons" );
67
- gp.buttons = 0 ;
68
67
gp.x = 0 ;
69
68
gp.y = 0 ;
70
69
gp.z = 0 ;
70
+ gp.rz = 0 ;
71
71
gp.rx = 0 ;
72
72
gp.ry = 0 ;
73
- gp.rz = 0 ;
74
73
gp.hat = 0 ;
74
+ gp.buttons = 0 ;
75
75
usb_hid.sendReport (0 , &gp, sizeof (gp));
76
76
delay (2000 );
77
77
@@ -253,14 +253,14 @@ void loop()
253
253
254
254
// Random touch
255
255
Serial.println (" Random touch" );
256
- gp.buttons = random (0 , 0xffff );
257
256
gp.x = random (-127 , 128 );
258
257
gp.y = random (-127 , 128 );
259
258
gp.z = random (-127 , 128 );
259
+ gp.rz = random (-127 , 128 );
260
260
gp.rx = random (-127 , 128 );
261
261
gp.ry = random (-127 , 128 );
262
- gp.rz = random (-127 , 128 );
263
262
gp.hat = random (0 , 9 );
263
+ gp.buttons = random (0 , 0xffff );
264
264
usb_hid.sendReport (0 , &gp, sizeof (gp));
265
265
delay (2000 );
266
266
You can’t perform that action at this time.
0 commit comments