compiler/clib: #error if not cpu specific implementation of setjmp(), longjmp(),...
[AROS.git] / rom / intuition / setmousequeue.c
blob0cf0c25a063b117f0b3bbb7f825e3a909ecdcef5
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 <proto/intuition.h>
14 AROS_LH2(LONG, SetMouseQueue,
16 /* SYNOPSIS */
17 AROS_LHA(struct Window *, window, A0),
18 AROS_LHA(UWORD , queuelength, D0),
20 /* LOCATION */
21 struct IntuitionBase *, IntuitionBase, 83, Intuition)
23 /* FUNCTION
24 Change the number of mouse messages for your window to be allowed
25 to be outstanding.
27 INPUTS
28 window - the window
29 queuelength - the number of mouse messages to be allowed to be
30 outstanding
32 RESULT
33 Returns -1 if the window is unknown otherwise the old value of the
34 queuelength is returned.
36 NOTES
37 There should be a function for changing the repeat key queue limit, too.
39 EXAMPLE
41 BUGS
43 SEE ALSO
44 OpenWindow()
46 INTERNALS
48 HISTORY
50 *****************************************************************************/
52 AROS_LIBFUNC_INIT
54 LONG result;
56 IntuitionBase = IntuitionBase; /* shut up the compiler */
58 SANITY_CHECKR(window,-1)
60 result = ((struct IntWindow *)window)->mousequeue;
61 ((struct IntWindow *)window)->mousequeue = queuelength;
63 return result;
65 AROS_LIBFUNC_EXIT
66 } /* SetMouseQueue */