aboutsummaryrefslogtreecommitdiff
path: root/hid.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-10-22 18:49:16 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-10-22 18:49:16 +0000
commit9554c20806f8da1482790543f2ec5a3c91b363d0 (patch)
tree87c1653591f47f75da9e467f0d2a4fae1bb65c94 /hid.h
parentf59333ff17f17d8fa9e983ccee47f43cd77a3040 (diff)
more progress generalizing for cross-platformness; Darwin stuff compiles and the object loads, but it doesn't do anything yet
svn path=/trunk/externals/hcs/hid/; revision=2141
Diffstat (limited to 'hid.h')
-rw-r--r--hid.h33
1 files changed, 31 insertions, 2 deletions
diff --git a/hid.h b/hid.h
index be81e1b..b9d1316 100644
--- a/hid.h
+++ b/hid.h
@@ -1,9 +1,11 @@
+#ifndef _HID_H
+#define _HID_H
#include <m_pd.h>
-#include "input_arrays.h"
+#include "hid.h"
-static char *version = "$Revision: 1.1 $";
+static char *version = "$Revision: 1.2 $";
/*------------------------------------------------------------------------------
* CLASS DEF
@@ -24,3 +26,30 @@ typedef struct _hid
t_int x_locID;
} t_hid;
+
+/*------------------------------------------------------------------------------
+ * FUNCTION PROTOTYPES FOR APPLE HID MANAGER
+ */
+#ifdef __APPLE__
+void releaseHIDDevices (void);
+int prHIDBuildElementList(void);
+int prHIDBuildDeviceList(void);
+int prHIDGetValue(void);
+void PushQueueEvents_RawValue(void);
+void PushQueueEvents_CalibratedValue(void);
+//static pascal void IdleTimer(EventLoopTimerRef inTimer, void* userData);
+int prHIDReleaseDeviceList(void);
+//static EventLoopTimerUPP GetTimerUPP(void);
+//void callback(void * target, IOReturn result, void * refcon, void * sender);
+int prHIDRunEventLoop(void);
+int prHIDQueueDevice(void);
+int prHIDQueueElement(void);
+int prHIDDequeueElement(void);
+int prHIDDequeueDevice(void);
+int prHIDStopEventLoop(void);
+#endif /* #ifdef __APPLE__ */
+
+
+
+
+#endif /* #ifndef _HID_H */