aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hidin/hidin.c3
-rw-r--r--hidin/hidin.h8
2 files changed, 7 insertions, 4 deletions
diff --git a/hidin/hidin.c b/hidin/hidin.c
index a41c563..fe9a79c 100644
--- a/hidin/hidin.c
+++ b/hidin/hidin.c
@@ -40,7 +40,7 @@ typedef struct _hidin
long *x_prev_data; /* data we read the time bofore */
void *x_qelem; /* qelem for outputing the results */
long x_device; /* the HID device number we're connecting to */
- short x_elements; /* number of elements (i.e. buttons, axes...)
+ short x_elements; /* number of elements (i.e. buttons, axes...)*/
/* HID specific */
t_hid_device *x_hid; /* a struct containing all the needed stuff about the HID device */
@@ -741,7 +741,6 @@ void hidin_setup(void)
class_addmethod(hidin_class, (t_method)hidin_open, gensym("open"), A_FLOAT, 0);
class_addmethod(hidin_class, (t_method)hidin_close, gensym("close"), 0);
class_addmethod(hidin_class, (t_method)hidin_interval, gensym("interval"), A_FLOAT, 0);
- class_sethelpsymbol(hidin_class, gensym("help-hidin.pd"));
post(hidin_version);
}
diff --git a/hidin/hidin.h b/hidin/hidin.h
index 4425b76..5e88451 100644
--- a/hidin/hidin.h
+++ b/hidin/hidin.h
@@ -12,9 +12,13 @@
#include <stdlib.h>
#include <wtypes.h>
#include <setupapi.h>
+#ifdef _MSC_VER
#include "hidusage.h"
#include "hidsdi.h"
-#include "setupapi.h"
+#else
+#include <ddk/hidusage.h>
+#include <ddk/hidsdi.h>
+#endif
//
// A structure to hold the steady state data received from the hid device.
@@ -139,4 +143,4 @@ BOOLEAN unpackReport(PCHAR ReportBuffer, USHORT ReportBufferLength, HIDP_REPORT_
BOOLEAN packReport(PCHAR ReportBuffer, USHORT ReportBufferLength, HIDP_REPORT_TYPE ReportType,
t_hid_data *Data, ULONG DataLength, PHIDP_PREPARSED_DATA Ppd);
-#endif // hidin_H \ No newline at end of file
+#endif // hidin_H