mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-01-31 01:25:21 +01:00
Correct example including hidapi.h
This commit is contained in:
@@ -18,7 +18,8 @@
|
||||
#include <wchar.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "hidapi.h"
|
||||
|
||||
#include <hidapi.h>
|
||||
|
||||
// Headers needed for sleeping.
|
||||
#ifdef _WIN32
|
||||
@@ -175,7 +176,7 @@ int main(int argc, char* argv[])
|
||||
printf("waiting...\n");
|
||||
if (res < 0)
|
||||
printf("Unable to read()\n");
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
Sleep(500);
|
||||
#else
|
||||
usleep(500*1000);
|
||||
@@ -193,7 +194,7 @@ int main(int argc, char* argv[])
|
||||
/* Free static HIDAPI objects. */
|
||||
hid_exit();
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
system("pause");
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user