Fixed AutoDoc formatting.
[AROS.git] / rom / intuition / reportmouse.c
blobb0dc9bf8fc1b9b651b52ee99488042ad8190792a
1 /*
2 Copyright © 1995-2012, 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 an 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 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 DEBUG_REPORTMOUSE(dprintf("ReportMouse: Window 0x%lx Flag %d\n", window, flag));
53 SANITY_CHECK(window)
55 if (flag) AROS_ATOMIC_OR(window->Flags, WFLG_REPORTMOUSE);
56 else AROS_ATOMIC_AND(window->Flags, ~WFLG_REPORTMOUSE);
58 AROS_LIBFUNC_EXIT
59 } /* ReportMouse */