• 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 movement and Edges of screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mouse movement and Edges of screen


  • Subject: Re: Mouse movement and Edges of screen
  • From: Ali Ozer <email@hidden>
  • Date: Sun, 22 Jul 2001 01:24:48 -0700

NSEvent also provides this:

/* these messages are valid for scroll wheel events and mouse move/drag events */
- (float)deltaX;
- (float)deltaY;

Ali


On Saturday, July 21, 2001, at 09:26 , Kenneth C. Dyke wrote:

On Saturday, July 21, 2001, at 09:05 PM, Andreas Monitzer wrote:

On Sunday, July 22, 2001, at 04:58 , R. Eranki wrote:

How can I determine where the user is trying to move his mouse when it's at
the edge of the screen, -or- how can I force the mouse into the center of
the screen?

Maybe you should try using HIDManager.

Actually, there's an easier way than that...

From CGDirectDisplay.h.

void CGGetLastMouseDelta( CGMouseDelta * deltaX, CGMouseDelta * deltaY );

If you call this every time you receive a mouse moved event, you can get back the raw mouse deltas before the mouse was pinned to the edge of the screen. There are some other useful functions defined in CGRemoteOperation.h that you may also find useful.

-Ken


References: 
 >Re: Mouse movement and Edges of screen (From: "Kenneth C. Dyke" <email@hidden>)

  • Prev by Date: NSTableView custom class
  • Next by Date: Accessing Java from Obj-C
  • Previous by thread: Re: Mouse movement and Edges of screen
  • Next by thread: Star Menu like concept
  • Index(es):
    • Date
    • Thread