| | alfkil | Global 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
| centaurz | Re: Global mouse? | 20110213 20:35 #2117 |  | @alfkil
Yes, in IntuitionBase (which you first lock). | | |
|
| alfkil | Re: Global mouse? | 20110213 20:50 #2118 |  | @centaurz
Ok cool, thanks! :-) | | |
|
| chris | Re: Global mouse? | 20110213 21:00 #2119 |  | It's also part of the Screen structure IIRC
| | |
|
| tonyw | Re: 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;
[...]
| | |
|
| alfkil | Re: Global mouse? | 20110215 16:52 #2153 |  | @tonyw
Ok, that's a bit better than fooling around in intuitionbase. | | |
| Navigate: 1-5 Home |
|