4 * [Generated from event, 25 September 1996]
7 #if !defined(__CC_NORCROFT) || !defined(__arm)
8 #error You must use the Norcroft ARM Compiler for Sapphire programs
11 #pragma include_only_once
12 #pragma force_top_level
21 /*----- Overview ----------------------------------------------------------*
33 /* --- event_preFilter --- *
35 * On entry: R0 == pointer to routine to call
36 * R1 == R12 value to call routine
38 * On exit: May return an error
40 * Use: Adds a routine to the pre-filter list. Later added
41 * routines are called first.
44 extern routine event_preFilter;
46 /* --- event_fakeHandler --- *
48 * On entry: R0 == pointer to routine to call
49 * R1 == R12 value to call routine
51 * On exit: May return an error
53 * Use: Adds a routine to the fake handler list. Later added
54 * routines are called first.
57 extern routine event_fakeHandler;
59 /* --- event_postFilter --- *
61 * On entry: R0 == pointer to routine to call
62 * R1 == R12 value to call routine
64 * On exit: May return an error
66 * Use: Adds a routine to the post-poll list. Later added
67 * routines are called first.
70 extern routine event_postFilter;
72 /* --- event_poll --- *
74 * On entry: R0 == event mask and flags
75 * R1 == pointer to block to use
76 * R2 == earliest time to return with NULL event
77 * R3 == optional pointer to poll word
79 * On exit: R0 == reason code
80 * CS if the event was claimed, CC otherwise
82 * Use: This call perform a Wimp_Poll, and dispatches events to
86 extern routine event_poll;
88 /* --- event_last --- *
92 * On exit: R0 == last event code received from Wimp_Poll
93 * R1 == pointer to accompanying event data
95 * Use: Allows you to read the full event information. The event
96 * is the same one currently being or most recently dispatched
97 * to the postfilter list, i.e. fake events are also returned
98 * by this call. If no event has yet been received, the return
99 * values are undefined.
102 extern routine event_last;
104 /* --- event_init --- *
110 * Use: Initialises the event system.
113 extern routine event_init;
115 /*----- That's all, folks -------------------------------------------------*/