diff options
Diffstat (limited to 'hid.h')
-rw-r--r-- | hid.h | 33 |
1 files changed, 31 insertions, 2 deletions
@@ -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 */ |