diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-10-25 04:11:05 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-10-25 04:11:05 +0000 |
commit | 029f0be8e4beea787feb984b2797f6e23f7964ac (patch) | |
tree | 40c321591bff2952a908926e0006c581deb563af /MultitouchSupport.h | |
parent | e95cc04a85be1ef67d9be53a8bb2cc05b1633231 (diff) |
first version of object for private MultitouchSupport framework based on code from steide and fingerpinger
svn path=/trunk/externals/apple/; revision=12669
Diffstat (limited to 'MultitouchSupport.h')
-rw-r--r-- | MultitouchSupport.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/MultitouchSupport.h b/MultitouchSupport.h new file mode 100644 index 0000000..835c1a4 --- /dev/null +++ b/MultitouchSupport.h @@ -0,0 +1,39 @@ +#ifndef _MULTITOUCHSUPPORT_H_ +#define _MULTITOUCHSUPPORT_H_ + + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { float x,y; } mtPoint; +typedef struct { mtPoint pos,vel; } mtReadout; + +typedef struct { + int frame; + double timestamp; + int identifier, state, foo3, foo4; + mtReadout normalized; + float size; + int zero1; + float angle, majorAxis, minorAxis; // ellipsoid + mtReadout mm; + int zero2[2]; + float unk2; +} Finger; + +typedef void *MTDeviceRef; +typedef int (*MTContactCallbackFunction)(int,Finger*,int,double,int); + + +MTDeviceRef MTDeviceCreateDefault(); +void MTRegisterContactFrameCallback(MTDeviceRef, MTContactCallbackFunction); +void MTDeviceStart(MTDeviceRef, int); +void MTDeviceStop(MTDeviceRef); +void MTDeviceRelease(MTDeviceRef); + +#ifdef __cplusplus +} +#endif + +#endif /* _MULTITOUCHSUPPORT_H_ */ |