From a31c391dc384912d8eb511feb62a12aae0ce7005 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 23 Oct 2004 03:40:39 +0000 Subject: got everything running under GNU/Linux again, time to switch back to MacOS X svn path=/trunk/externals/hcs/hid/; revision=2144 --- hid.h | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'hid.h') 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); -- cgit v1.2.1