fix properties
[AROS.git] / rom / intuition / reportmouse.c
blob80c5fc86af27c603117f56c3330b257bc20e5548
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include "intuition_intern.h"
9 /*****************************************************************************
11 NAME */
12 #include <intuition/intuition.h>
13 #include <proto/intuition.h>
15 AROS_LH2(void, ReportMouse,
17 /* SYNOPSIS */
18 AROS_LHA(LONG , flag, D0),
19 AROS_LHA(struct Window *, window, A0),
21 /* LOCATION */
22 struct IntuitionBase *, IntuitionBase, 39, Intuition)
24 /* FUNCTION
25 Enable or disable the window flag REPORTMOUSE. If the flag is
26 set, you will receive IDCMP event every time the user moves
27 the mouse.
29 INPUTS
30 flag - Enable (TRUE) or disable (FALSE) the reports.
31 window - Do it in this window.
33 RESULT
34 None.
36 NOTES
37 As you might have noticed, the arguments are twisted.
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 HISTORY
49 *****************************************************************************/
51 AROS_LIBFUNC_INIT
53 DEBUG_REPORTMOUSE(dprintf("ReportMouse: Window 0x%lx Flag %d\n", window, flag));
55 SANITY_CHECK(window)
57 if (flag) AROS_ATOMIC_OR(window->Flags, WFLG_REPORTMOUSE);
58 else AROS_ATOMIC_AND(window->Flags, ~WFLG_REPORTMOUSE);
61 AROS_LIBFUNC_EXIT
62 } /* ReportMouse */