2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include "intuition_intern.h"
9 /*****************************************************************************
12 #include <intuition/intuition.h>
13 #include <proto/intuition.h>
15 AROS_LH2(void, ReportMouse
,
18 AROS_LHA(LONG
, flag
, D0
),
19 AROS_LHA(struct Window
*, window
, A0
),
22 struct IntuitionBase
*, IntuitionBase
, 39, Intuition
)
25 Enable or disable the window flag REPORTMOUSE. If the flag is
26 set, you will receive IDCMP event every time the user moves
30 flag - Enable (TRUE) or disable (FALSE) the reports.
31 window - Do it in this window.
37 As you might have noticed, the arguments are twisted.
49 *****************************************************************************/
53 DEBUG_REPORTMOUSE(dprintf("ReportMouse: Window 0x%lx Flag %d\n", window
, flag
));
57 if (flag
) AROS_ATOMIC_OR(window
->Flags
, WFLG_REPORTMOUSE
);
58 else AROS_ATOMIC_AND(window
->Flags
, ~WFLG_REPORTMOUSE
);