Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Implementing system-wide features

Implementing system-wide features
Thread Tools
Fresh-Faced Recruit
Join Date: Apr 2001
Status: Offline
Reply With Quote
Apr 11, 2001, 12:51 AM
 
Can a Cocoa app manipulate system-wide features, such as mouse speed? If so, how?

Specifically, I'm trying to make a program which fine-tunes mouse behaviour, such as pointer speed, orientation, and acceleration. Can I go about this with Cocoa? Or would I have to dig down to the kernel level?
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Apr 11, 2001, 01:11 PM
 
It's not at kernel level anyways, I don't think, since the kernel has nothing in it to do with the GUI. I think I heard somewhere that mouse speed was tweakable by a plist somewhere, but I'm not sure of what plist it would be.

It might be impossible to do exactly what you want, like pointer acceleration, since it's probably hardcoded into the OS, and I don't think there's a way of overriding these functions like you could in the previous Mac OS by using extensions.
     
Forum Regular
Join Date: Jan 2001
Status: Offline
Reply With Quote
Apr 11, 2001, 03:16 PM
 
Kensington Mouseworks tunes the mouse speed. So it can be done.
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status: Offline
Reply With Quote
Apr 12, 2001, 11:38 AM
 
There are some APIs you can use to change the mouse speed on a system-wide basis -- this is what System Prefs does. However, the Mouse panel in System Prefs gives you as much flexibility as the low-level APIs do... it's just a speed setting. It may be possible to get a larger value shoved in there, but you'd probably have to find some private API to do this... you'd have to dig around in the Darwin code if you're interested.

To really affect things -- and to modify attributes other than speed easily -- then you'd probably have to write your own mouse driver.
     
Fresh-Faced Recruit
Join Date: Apr 2001
Status: Offline
Reply With Quote
Apr 13, 2001, 12:54 AM
 
Write my own mouse drivers? hmmm.. getting scary...

Could you tell me what API's are available for adjusting mouse / pointer settings?

And, don't you think Apple really should provide another slider in the mouse control panel for adjusting acceleration?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:02 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2