From 9554c20806f8da1482790543f2ec5a3c91b363d0 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 22 Oct 2004 18:49:16 +0000 Subject: 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 --- hid.h | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'hid.h') 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 -#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 */ -- cgit v1.2.1