Is there a way to change the system-wide mouse tracking speed
programmatically for the standard mouse driver using either cocoa,
carbon or HID? The mouse system Preferences provide too little
control in this case.
int
main()
{
kern_return_t kr;
double trackpadAcceleration, mouseAcceleration;
NXEventHandle h = 0;
h = NXOpenEventStatus();
if (h == nil)
return -1;
// Get the current "Tracking Speed".
kr = IOHIDGetAccelerationWithKey( h,
CFSTR(kIOHIDTrackpadAccelerationType), &trackpadAcceleration);
kr = IOHIDGetAccelerationWithKey( h,
CFSTR(kIOHIDMouseAccelerationType), &mouseAcceleration);
// Set the "Tracking Speed" to 1.0. Possible values are 0.0,
0.125, 0.3125, 0.5, 0.6875, 0.875, 1.0, 1.7.
IOHIDSetAccelerationWithKey( h,
CFSTR(kIOHIDTrackpadAccelerationType), 0.0);
// Set the "Tracking Speed" to 1.0. Possible values are 0.0,
0.125, 0.3125, 0.5, 0.6875, 0.875, 1.0, 1.7.
IOHIDSetAccelerationWithKey( h, CFSTR(kIOHIDMouseAccelerationType), 0.0);
--
Sincerely,
Rich Kubota
email@hidden
(408) 974-6212
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.