4 ; Event handling routines
6 ; © 1994-1998 Straylight
9 ;----- Licensing note -------------------------------------------------------
11 ; This file is part of Straylight's Sapphire library.
13 ; Sapphire is free software; you can redistribute it and/or modify
14 ; it under the terms of the GNU General Public License as published by
15 ; the Free Software Foundation; either version 2, or (at your option)
18 ; Sapphire is distributed in the hope that it will be useful,
19 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ; GNU General Public License for more details.
23 ; You should have received a copy of the GNU General Public License
24 ; along with Sapphire. If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 ;----- Overview -------------------------------------------------------------
38 [ :LNOT::DEF:event__dfn
41 ; --- event_preFilter ---
43 ; On entry: R0 == pointer to routine to call
44 ; R1 == R12 value to call routine
46 ; On exit: May return an error
48 ; Use: Adds a routine to the pre-filter list. Later added
49 ; routines are called first.
51 IMPORT event_preFilter
53 ; --- event_fakeHandler ---
55 ; On entry: R0 == pointer to routine to call
56 ; R1 == R12 value to call routine
58 ; On exit: May return an error
60 ; Use: Adds a routine to the fake handler list. Later added
61 ; routines are called first.
63 IMPORT event_fakeHandler
65 ; --- event_postFilter ---
67 ; On entry: R0 == pointer to routine to call
68 ; R1 == R12 value to call routine
70 ; On exit: May return an error
72 ; Use: Adds a routine to the post-poll list. Later added
73 ; routines are called first.
75 IMPORT event_postFilter
79 ; On entry: R0 == event mask and flags
80 ; R1 == pointer to block to use
81 ; R2 == earliest time to return with NULL event
82 ; R3 == optional pointer to poll word
84 ; On exit: R0 == reason code
85 ; CS if the event was claimed, CC otherwise
87 ; Use: This call perform a Wimp_Poll, and dispatches events to
96 ; On exit: R0 == last event code received from Wimp_Poll
97 ; R1 == pointer to accompanying event data
99 ; Use: Allows you to read the full event information. The event
100 ; is the same one currently being or most recently dispatched
101 ; to the postfilter list, i.e. fake events are also returned
102 ; by this call. If no event has yet been received, the return
103 ; values are undefined.
113 ; Use: Initialises the event system.
119 ;----- That's all, folks ----------------------------------------------------