blob: 5236c23b826c778631db8a48f84a9a6f2076cc13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include<stdio.h>
#include "razerdevice.h"
#include "razerkbd_driver.h"
int main(int argc, const char * argv[]) {
RazerDevices allDevices = getAllRazerDevices();
RazerDevice *razerDevices = allDevices.devices;
printf("%d Razer device(s) found:\n", allDevices.size);
for (int i = 0; i < allDevices.size; i++) {
RazerDevice device = razerDevices[i];
printf("%#06x\n", device.productId);
}
closeAllRazerDevices(allDevices);
return 0;
}
|