We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f75adc3 commit 7c0dc53Copy full SHA for 7c0dc53
README.md
@@ -83,15 +83,13 @@ Generic HID sample looks like this (with error checking removed for
83
simplicity):
84
85
**Warning: Only run the code you understand, and only when it conforms to the
86
-device spec. Writing data at random to your HID devices can break them.**
+device spec. Writing data (`hid_write`) at random to your HID devices can break them.**
87
88
```c
89
-#ifdef WIN32
90
-#include <windows.h>
91
-#endif
92
-#include <stdio.h>
93
-#include <stdlib.h>
94
-#include "hidapi.h"
+#include <stdio.h> // printf
+#include <wchar.h> // wprintf
+
+#include <hidapi.h>
95
96
#define MAX_STR 255
97
0 commit comments