Keyboard 6.16 KB
Newer Older
Ben Avison's avatar
Ben Avison committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
; Copyright 2008 Castle Technology Ltd
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
;     http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;
; This header file is autogenerated from the files maintained by the
; RISC OS allocations manager and should not be edited by anyone else.

        SUBT    > &.Hdr.Keyboard


; Header file for Keyboard interface.


OldOpt  SETA    {OPT}
        OPT     OptNoList+OptNoP1List


; ***********************************
; ***    C h a n g e   L i s t    ***
; ***********************************


; Date       Who  Description
; ----       ---  -----------
; 25-Aug-99  SBF  Created: all known keyboard IDs, KeyV reason codes, KeyV flags and low-level key numbers included
; 01-Sep-02  amg  Added two extra for wheel mice
;


; Keyboard IDs.
KeyboardID_A500                 * 0
KeyboardID_Archimedes           * 1
KeyboardID_PC                   * 2
KeyboardID_A4                   * KeyboardID_PC
KeyboardID_RCMM                 * 3
Ben Avison's avatar
Ben Avison committed
46
KeyboardID_None                 * &FF
Ben Avison's avatar
Ben Avison committed
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185


; KeyV reason codes.
KeyV_KeyboardPresent            * 0
KeyV_KeyUp                      * 1
KeyV_KeyDown                    * 2
KeyV_NotifyLEDState             * 3
KeyV_EnableDrivers              * 4


; Flags in R1 of KeyV_NotifyLEDState (PRM volume 5 is *wrong*)
KeyV_LED_CapsLock               * 1
KeyV_LED_NumLock                * 2
KeyV_LED_ScrollLock             * 4


; Low-level key numbers.
KeyNo_Escape                    * &00
KeyNo_Function1                 * &01
KeyNo_Function2                 * &02
KeyNo_Function3                 * &03
KeyNo_Function4                 * &04
KeyNo_Function5                 * &05
KeyNo_Function6                 * &06
KeyNo_Function7                 * &07
KeyNo_Function8                 * &08
KeyNo_Function9                 * &09
KeyNo_Function10                * &0A
KeyNo_Function11                * &0B
KeyNo_Function12                * &0C
KeyNo_Print                     * &0D
KeyNo_ScrollLock                * &0E
KeyNo_Break                     * &0F
KeyNo_BackTick                  * &10
KeyNo_Digit1                    * &11
KeyNo_Digit2                    * &12
KeyNo_Digit3                    * &13
KeyNo_Digit4                    * &14
KeyNo_Digit5                    * &15
KeyNo_Digit6                    * &16
KeyNo_Digit7                    * &17
KeyNo_Digit8                    * &18
KeyNo_Digit9                    * &19
KeyNo_Digit0                    * &1A
KeyNo_Minus                     * &1B
KeyNo_Equals                    * &1C
KeyNo_Pound                     * &1D
KeyNo_BackSpace                 * &1E
KeyNo_Insert                    * &1F
KeyNo_Home                      * &20
KeyNo_PageUp                    * &21
KeyNo_NumLock                   * &22
KeyNo_NumPadSlash               * &23
KeyNo_NumPadStar                * &24
KeyNo_NumPadHash                * &25
KeyNo_Tab                       * &26
KeyNo_LetterQ                   * &27
KeyNo_LetterW                   * &28
KeyNo_LetterE                   * &29
KeyNo_LetterR                   * &2A
KeyNo_LetterT                   * &2B
KeyNo_LetterY                   * &2C
KeyNo_LetterU                   * &2D
KeyNo_LetterI                   * &2E
KeyNo_LetterO                   * &2F
KeyNo_LetterP                   * &30
KeyNo_OpenSquare                * &31
KeyNo_CloseSquare               * &32
KeyNo_BackSlash                 * &33
KeyNo_Delete                    * &34
KeyNo_Copy                      * &35
KeyNo_PageDown                  * &36
KeyNo_NumPad7                   * &37
KeyNo_NumPad8                   * &38
KeyNo_NumPad9                   * &39
KeyNo_NumPadMinus               * &3A
KeyNo_CtrlLeft                  * &3B
KeyNo_LetterA                   * &3C
KeyNo_LetterS                   * &3D
KeyNo_LetterD                   * &3E
KeyNo_LetterF                   * &3F
KeyNo_LetterG                   * &40
KeyNo_LetterH                   * &41
KeyNo_LetterJ                   * &42
KeyNo_LetterK                   * &43
KeyNo_LetterL                   * &44
KeyNo_SemiColon                 * &45
KeyNo_Tick                      * &46
KeyNo_Return                    * &47
KeyNo_NumPad4                   * &48
KeyNo_NumPad5                   * &49
KeyNo_NumPad6                   * &4A
KeyNo_NumPadPlus                * &4B
KeyNo_ShiftLeft                 * &4C
KeyNo_NotFittedLeft             * &4D
KeyNo_LetterZ                   * &4E
KeyNo_LetterX                   * &4F
KeyNo_LetterC                   * &50
KeyNo_LetterV                   * &51
KeyNo_LetterB                   * &52
KeyNo_LetterN                   * &53
KeyNo_LetterM                   * &54
KeyNo_Comma                     * &55
KeyNo_Dot                       * &56
KeyNo_Slash                     * &57
KeyNo_ShiftRight                * &58
KeyNo_CursorUp                  * &59
KeyNo_NumPad1                   * &5A
KeyNo_NumPad2                   * &5B
KeyNo_NumPad3                   * &5C
KeyNo_CapsLock                  * &5D
KeyNo_AltLeft                   * &5E
KeyNo_Space                     * &5F
KeyNo_AltRight                  * &60
KeyNo_CtrlRight                 * &61
KeyNo_CursorLeft                * &62
KeyNo_CursorDown                * &63
KeyNo_CursorRight               * &64
KeyNo_NumPad0                   * &65
KeyNo_NumPadDot                 * &66
KeyNo_NumPadEnter               * &67
KeyNo_AcornLeft                 * &68
KeyNo_AcornRight                * &69
KeyNo_Menu                      * &6A
KeyNo_NoConvert                 * &6B
KeyNo_Convert                   * &6C
KeyNo_Kana                      * &6D
KeyNo_NotFittedRight            * &6E
KeyNo_FN                        * &6F
KeyNo_LeftMouse                 * &70
KeyNo_CentreMouse               * &71
KeyNo_RightMouse                * &72
KeyNo_Mouse1			* &73
KeyNo_Mouse2			* &74


        OPT     OldOpt
        END