aboutsummaryrefslogtreecommitdiff
path: root/hid.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-10-23 03:40:39 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-10-23 03:40:39 +0000
commita31c391dc384912d8eb511feb62a12aae0ce7005 (patch)
tree8323dbe6985690233d2642aea4682d573bdb9e6f /hid.h
parent9554c20806f8da1482790543f2ec5a3c91b363d0 (diff)
got everything running under GNU/Linux again, time to switch back to MacOS X
svn path=/trunk/externals/hcs/hid/; revision=2144
Diffstat (limited to 'hid.h')
-rw-r--r--hid.h26
1 files changed, 20 insertions, 6 deletions
diff --git a/hid.h b/hid.h
index b9d1316..f6993f5 100644
--- a/hid.h
+++ b/hid.h
@@ -5,7 +5,7 @@
#include "hid.h"
-static char *version = "$Revision: 1.2 $";
+static char *version = "$Revision: 1.3 $";
/*------------------------------------------------------------------------------
* CLASS DEF
@@ -28,19 +28,33 @@ typedef struct _hid
/*------------------------------------------------------------------------------
- * FUNCTION PROTOTYPES FOR APPLE HID MANAGER
+ * GLOBALS
*/
+
+char *deviceList[64];
+char *typeList[256];
+char *codeList[256];
+
+/*------------------------------------------------------------------------------
+ * FUNCTION PROTOTYPES FOR DIFFERENT PLATFORMS
+ */
+
+#ifdef __linux__
+void releaseDevices(void);
+void buildDeviceList(void);
+void buildTypeList(void);
+
+#endif
+
+
#ifdef __APPLE__
-void releaseHIDDevices (void);
+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);