combo OCC AND Apple events
How do I turn off cursor movement?
Use a context routing table to send a boolean value for attribute pContextMovesSystemCursor.
How do I get the dimensions of the tablet?
Use a context routing table to request pTabletSize from the driver. The ScribbleDemo - Getting Started document has an example of how to do this.
How can I get the version of the driver?
The following code is an example of how to query the driver for its version:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
typedef enum : unsigned char
{
EUnknownVersion = 0,
EAlphaVersion,
EBetaVersion,
EWebVersion,
EDevelopmentVersion,
EFinalVersion
} ERELEASE;
struct FileVersion
{
uint8 major_I;
uint8 minor_I;
uint8 variation_I;
ERELEASE release_I;
uint8 build_I;
};
struct FileVersion *theVersion = NULL;
NSAppleEventDescriptor *version = [WacomTabletDriver dataForAttribute:pVersion
ofType:typeVersion
routingTable:[WacomTabletDriver routingTableForDriver]];
NSData *verData = [version data];
theVersion = (struct FileVersion*)[verData bytes];
if (theVersion)
{
NSString *verString = [NSString stringWithFormat:@"%d.%d.%d", theVersion->major_I,
theVersion->minor_I, theVersion->variation_I];
[driverVersion setStringValue:verString];
}
}
Where can I download the Driver Request Interface from?
- The Driver Request Interface is available at https://github.com/Wacom-Developer/wacom-device-kit-macos-api.