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 -------------------------------------------------------------
35 [ :LNOT::DEF:akbd__dfn
40 ; On entry: R0 == internal key number to test
42 ; On exit: CS if key was pressed, CC otherwise
44 ; Use: Informs you whether a given key is currently being pressed.
48 ; --- akbd_translate ---
50 ; On entry: R0 == Wimp key number
52 ; On exit: R0 == Straylight extended keyset key number
54 ; Use: Translates a Wimp key number into one of the more specific
55 ; Straylight key numbers.
59 ; --- akbd_pollKey ---
63 ; On exit: CC if a key was in the buffer and
64 ; R0 == wimp translated key code
68 ; Use: Reports whether the user has typed ahead, and if so what the ; keypress. Note that the keypresses returned are WIMP-type,
69 ; not Straylight extended ones so you will have to use
70 ; akbd_translate if you need the extended type.
72 ; This call could be used to allow buffering of keypresses:
73 ; on a Key_Pressed event you would call this routine until
74 ; it returns FALSE and store the codes it returns in a buffer
75 ; along with the code from the event.
81 ;----- That's all, folks ----------------------------------------------------