1Keyboard : module { 2 # Inferno Generic Scan Conversions 3 # this file needs to be kept in sync with include/keyboard.h 4 5 No: con -1; 6 Esc: con 16r1b; 7 8 Spec: con 16rE000; # Special Function Keys - mapped to Unicode reserved range 9 Shift: con Spec|16r00; # Shifter (Held) Keys 10 View: con Spec|16r10; # View Keys 11 PF: con Spec|16r20; # num pad 12 KF: con Spec|16r40; # function keys 13 14 LShift: con Shift|0; 15 RShift: con Shift|1; 16 LCtrl: con Shift|2; 17 RCtrl: con Shift|3; 18 Caps: con Shift|4; 19 Num: con Shift|5; 20 Meta: con Shift|6; 21 LAlt: con Shift|7; 22 RAlt: con Shift|8; 23 NShifts: con 9; # total number of shift keys 24 25 Home: con View|0; 26 End: con View|1; 27 Up: con View|2; 28 Down: con View|3; 29 Left: con View|4; 30 Right: con View|5; 31 Pgup: con View|6; 32 Pgdown: con View|7; 33 BackTab: con View|8; 34 35 Scroll: con Spec|16r62; 36 Ins: con Spec|16r63; 37 Del: con Spec|16r64; 38 Print: con Spec|16r65; 39 Pause: con Spec|16r66; 40 Middle: con Spec|16r67; 41 Break: con Spec|16r66; 42 SysRq: con Spec|16r69; 43 PwrOn: con Spec|16r6c; 44 PwrOff: con Spec|16r6d; 45 PwrLow: con Spec|16r6e; 46 Latin: con Spec|16r6f; 47 48 APP: con Spec|16r200; # for application use (ALT keys) 49}; 50 51