-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.c
34 lines (31 loc) · 827 Bytes
/
test.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <stdio.h>
#include <string.h>
#include "types.h"
#include "nextreport.h"
int v = 0;
int main(void) {
for (uint i = 0; v != 88; i++) {
USB_JoystickReport_t JoystickInputData;
GetNextReport(&JoystickInputData);
//if (JoystickInputData.LX != 128) {
printf("Buttons: %u, Hat: %u, Sticks: (%u, %u), (%u, %u), Vendor: %u\n",
JoystickInputData.Button,
JoystickInputData.HAT,
JoystickInputData.LX,
JoystickInputData.LY,
JoystickInputData.RX,
JoystickInputData.RY,
JoystickInputData.VendorSpec
);
// if (JoystickInputData.LX != 128) {
// printf("%u, %u, %u, %u\n",
// JoystickInputData.LX,
// JoystickInputData.LY,
// JoystickInputData.RX,
// JoystickInputData.RY
// );
// }
v = JoystickInputData.VendorSpec;
//}
}
}