Logo54.145.182.50 
  Home  News  Recent  Forums  Search  Contact
  Menu
 Username

 Password


   Register here

 Main menu
   View images
   BBCode test
 
 Content
   Statement of intent
   Terms Of Service
   IRC Channel
   List Content

 In cooperation with
  OS4Depot.net
  OpenAmiga.org
  OS4Welt

 Links
  AmigaOS4
  IntuitionBase
  UtilityBase
  Amiga Flame
  Amiga Spirit
  AmiKit
  Aminet
  AmiBay
  AmigaBounty
  AmigaWorld
  Exec
  Amiga.cz
  View comments
Title  
  Forums
    Development
      AmigaOS 4  
alfkilGlobal mouse?20110213 20:31
Sorry I'm being stupid here... Is there any way to get the global, screen relative mouse position from Intuition _without_ waiting for a IDCMP_MOUSEMOVE event?
Navigate: 1-5 
centaurzRe: Global mouse?20110213 20:35  #2117
@alfkil

Yes, in IntuitionBase (which you first lock).
alfkilRe: Global mouse?20110213 20:50  #2118
@centaurz

Ok cool, thanks! :-)
chrisRe: Global mouse?20110213 21:00  #2119
It's also part of the Screen structure IIRC
tonywRe: Global mouse?20110215 04:28  #2145
@alfkil

Quote from include/intuition/screens.h:


struct Screen
{
struct Screen *NextScreen; /* linked list of screens */
struct Window *FirstWindow; /* linked list Screen's Windows */

WORD LeftEdge, TopEdge; /* parameters of the screen */
WORD Width, Height; /* parameters of the screen */

int16 MouseY; /* position relative to upper-left */
int16 MouseX;
[...]
alfkilRe: Global mouse?20110215 16:52  #2153
@tonyw

Ok, that's a bit better than fooling around in intuitionbase.
Navigate: 1-5 
Home
Snack! forum website engine, Created in 2008 by Björn Hagström