summaryrefslogtreecommitdiff
path: root/module/keyboard.m
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2006-12-22 20:52:35 +0000
committerCharles.Forsyth <devnull@localhost>2006-12-22 20:52:35 +0000
commit46439007cf417cbd9ac8049bb4122c890097a0fa (patch)
tree6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /module/keyboard.m
parent37da2899f40661e3e9631e497da8dc59b971cbd0 (diff)
20060303-partial
Diffstat (limited to 'module/keyboard.m')
-rw-r--r--module/keyboard.m50
1 files changed, 50 insertions, 0 deletions
diff --git a/module/keyboard.m b/module/keyboard.m
new file mode 100644
index 00000000..95a6d666
--- /dev/null
+++ b/module/keyboard.m
@@ -0,0 +1,50 @@
+Keyboard : module {
+ # Inferno Generic Scan Conversions
+ # this file needs to be kept in sync with include/keyboard.h
+
+ No: con -1;
+ Esc: con 16r1b;
+
+ Spec: con 16rE000; # Special Function Keys - mapped to Unicode reserved range
+ Shift: con Spec|16r00; # Shifter (Held) Keys
+ View: con Spec|16r10; # View Keys
+ PF: con Spec|16r20; # num pad
+ KF: con Spec|16r40; # function keys
+
+ LShift: con Shift|0;
+ RShift: con Shift|1;
+ LCtrl: con Shift|2;
+ RCtrl: con Shift|3;
+ Caps: con Shift|4;
+ Num: con Shift|5;
+ Meta: con Shift|6;
+ LAlt: con Shift|7;
+ RAlt: con Shift|8;
+ NShifts: con 9; # total number of shift keys
+
+ Home: con View|0;
+ End: con View|1;
+ Up: con View|2;
+ Down: con View|3;
+ Left: con View|4;
+ Right: con View|5;
+ Pgup: con View|6;
+ Pgdown: con View|7;
+ BackTab: con View|8;
+
+ Scroll: con Spec|16r62;
+ Ins: con Spec|16r63;
+ Del: con Spec|16r64;
+ Print: con Spec|16r65;
+ Pause: con Spec|16r66;
+ Middle: con Spec|16r67;
+ Break: con Spec|16r66;
+ SysRq: con Spec|16r69;
+ PwrOn: con Spec|16r6c;
+ PwrOff: con Spec|16r6d;
+ PwrLow: con Spec|16r6e;
+ Latin: con Spec|16r6f;
+
+ APP: con Spec|16r200; # for application use (ALT keys)
+};
+