Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / May 2006



Tip: Looking for answers? Try searching our database.

How to set mouse acceleration (System 7)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
friol - 06 May 2006 12:58 GMT
Hello.

Is there an OS API to set mouse cursor acceleration (as from the
control panel) on an old System 7 macintosh (mac SE/30)?
I am using Apple's MPW and c++.

Thanks.
DezertRat - 07 May 2006 00:58 GMT
> Hello.
>
[quoted text clipped - 3 lines]
>
> Thanks.

From "Universal Headers".... filename = "CursorDevices.h"...

would one of these work, maybe?

/*
*  CursorDeviceSetAcceleration()
*  
*  Availability:
*    Non-Carbon CFM:   not available
*    CarbonLib:        not available
*    Mac OS X:         not available
*/
EXTERN_API( OSErr )
CursorDeviceSetAcceleration(
 CursorDevicePtr   ourDevice,
 Fixed             acceleration)                            
TWOWORDINLINE(0x7008, 0xAADB);

/*
*  CursorDeviceDoubleTime()
*  
*  Availability:
*    Non-Carbon CFM:   not available
*    CarbonLib:        not available
*    Mac OS X:         not available
*/
EXTERN_API( OSErr )
CursorDeviceDoubleTime(
 CursorDevicePtr   ourDevice,
 long              durationTicks)                          
TWOWORDINLINE(0x7009, 0xAADB);

/*
*  CursorDeviceUnitsPerInch()
*  
*  Availability:
*    Non-Carbon CFM:   not available
*    CarbonLib:        not available
*    Mac OS X:         not available
*/
EXTERN_API( OSErr )
CursorDeviceUnitsPerInch(
 CursorDevicePtr   ourDevice,
 Fixed             resolution)                              
TWOWORDINLINE(0x700A, 0xAADB);

Dez
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.