1 /*----------------------------------------------------------------------------
5 TabletEvents.h - Header file for TabletEvent Category.
6 This is an extension to the NSEvent class.
10 Copyright WACOM Technology, Inc. 2001.
14 ----------------------------------------------------------------------------*/
16 #import <Cocoa/Cocoa.h>
17 #import <Carbon/Carbon.h>
19 @interface
NSEvent ( TabletEvents
)
22 - (BOOL
) isTabletPointerEvent
;
23 - (BOOL
) isTabletProximityEvent
;
24 - (void) setLocation
:(NSPoint
)loc
;
25 - (TabletPointerRec
) tabletRec
;
29 - (void) getAbsoluteX
:(SInt32
*)absX Y
:(SInt32
*)absY Z
:(SInt32
*)absZ
;
31 - (UInt16
) rawTabletPressure
;
32 - (float) scaledTabletPressure
;
33 - (float) rotationInDegrees
; /* 0¡ <-> +359.9999¡ */
34 - (float) rotationInRadians
; /* 0 <-> 2¹ */
39 ///////////////////////////////////////////////////////////////////////////
40 /* This is the name of the Notification sent when a proximity event is
41 captured by the application */
42 extern NSString
*kProximityNotification
;
44 /* vendor-defined ID - typically will be USB vendor ID */
45 extern NSString
*kVendorID
;
47 /* vendor-defined tablet ID */
48 extern NSString
*kTabletID
;
50 /* vendor-defined ID of the specific pointing device */
51 extern NSString
*kPointerID
;
53 /* unique device ID - matches to deviceID field in tablet event */
54 extern NSString
*kDeviceID
;
56 /* unique tablet ID */
57 extern NSString
*kSystemTabletID
;
59 /* vendor-defined pointer type */
60 extern NSString
*kVendorPointerType
;
62 /* vendor-defined serial number of the specific pointing device */
63 extern NSString
*kPointerSerialNumber
;
65 /* vendor-defined unique ID for this pointer */
66 extern NSString
*kUniqueID
;
68 /* mask representing the capabilities of the device */
69 extern NSString
*kCapabilityMask
;
71 /* type of pointing device - enum to be defined */
72 extern NSString
*kPointerType
;
74 /* non-zero = entering; zero = leaving */
75 extern NSString
*kEnterProximity
;