diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 17:07:39 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 17:07:39 +0000 |
| commit | 37da2899f40661e3e9631e497da8dc59b971cbd0 (patch) | |
| tree | cbc6d4680e347d906f5fa7fca73214418741df72 /include/keyboard.h | |
| parent | 54bc8ff236ac10b3eaa928fd6bcfc0cdb2ba46ae (diff) | |
20060303a
Diffstat (limited to 'include/keyboard.h')
| -rw-r--r-- | include/keyboard.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/include/keyboard.h b/include/keyboard.h new file mode 100644 index 00000000..de69a3a9 --- /dev/null +++ b/include/keyboard.h @@ -0,0 +1,60 @@ +/************** Inferno Generic Scan Conversions ************/ + +/* this file needs to be kept in sync with module/keyboard.m */ + +enum { + Esc= 0x1b, + + Spec= 0xe000, /* Special Function Keys, mapped to Unicode reserved range (E000-F8FF) */ + + Shift= Spec|0x0, /* Shifter (Held and Toggle) Keys */ + View= Spec|0x10, /* View Keys */ + PF= Spec|0x20, /* num pad */ + KF= Spec|0x40, /* function keys */ + + LShift= Shift|0, + RShift= Shift|1, + LCtrl= Shift|2, + RCtrl= Shift|3, + Caps= Shift|4, + Num= Shift|5, + Meta= Shift|6, + LAlt= Shift|7, + RAlt= Shift|8, + NShifts= 9, + + Home= View|0, + End= View|1, + Up= View|2, + Down= View|3, + Left= View|4, + Right= View|5, + Pgup= View|6, + Pgdown= View|7, + BackTab= View|8, + + Scroll= Spec|0x62, + Ins= Spec|0x63, + Del= Spec|0x64, + Print= Spec|0x65, + Pause= Spec|0x66, + Middle= Spec|0x67, + Break= Spec|0x66, + SysRq= Spec|0x69, + PwrOn= Spec|0x6c, + PwrOff= Spec|0x6d, + PwrLow= Spec|0x6e, + Latin= Spec|0x6f, + + /* for German keyboard */ + German= Spec|0xf00, + + Grave= German|0x1, + Acute= German|0x2, + Circumflex= German|0x3, + + APP= Spec|0x200, /* for ALT application keys */ + + No= -1, /* peter */ +}; + |
