• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mouse Control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mouse Control


  • Subject: Re: Mouse Control
  • From: Peter Ammon <email@hidden>
  • Date: Mon, 18 Jun 2001 14:27:14 -0700

on 6/18/01 10:11 AM, Steven Abner at email@hidden wrote:

> Can one reset or set the mouse location to the center of a window
> in Cocoa? One can still use GetMouse() for position and tell when
> it's time to re-center but how do you re-center?

Try using the CoreGraphics function
CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CGPoint point);

-Peter


References: 
 >Mouse Control (From: Steven Abner <email@hidden>)

  • Prev by Date: Re: Choosing Files Based Upon Type
  • Next by Date: Re: cocoa-dev digest, Vol 1 #163 - 15 msgs
  • Previous by thread: Mouse Control
  • Next by thread: NSOutlineView sample?
  • Index(es):
    • Date
    • Thread