Talk About Network

Google





Mac > Code warrior for Mac > Re: How to set ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 2132 of 2233
Post > Topic >>

Re: How to set mouse acceleration (System 7)

by DezertRat <DezertRat@[EMAIL PROTECTED] > May 6, 2006 at 11:58 PM

In article <fo3p525s1gfpheg99qnh4ppfpqp64ua7sb@[EMAIL PROTECTED]
>, friol
<no@[EMAIL PROTECTED]
> wrote:

> 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.
> 
> 
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
 




 2 Posts in Topic:
How to set mouse acceleration (System 7)
friol <no@[EMAIL PROTE  2006-05-06 11:58:54 
Re: How to set mouse acceleration (System 7)
DezertRat <DezertRat@[  2006-05-06 23:58:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 18:33:52 PST 2009.