gonzui


Format: Advanced Search

tkernel_2/include/device/keycode.hbare sourcepermlink (0.03 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    T-Kernel 2.0 Software Package
    4:  *
    5:  *    Copyright 2011 by Ken Sakamura.
    6:  *    This software is distributed under the latest version of T-License 2.x.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
   10:  *    Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   11:  *
   12:  *----------------------------------------------------------------------
   13:  */
   14: 
   15: /*
   16:  *      keycode.h
   17:  *
   18:  *       keyboard : keycode definitions
   19:  */
   20: 
   21: #ifndef __DEVICE_KEYCODE_H__
   22: #define __DEVICE_KEYCODE_H__
   23: 
   24: /* meta key code */
   25: #define KC_EIJI         0x1000         /* English <-> Japanese swap */
   26: #define KC_CAPN         0x1001         /* Hiragana <-> Katakana swap */
   27: #define KC_SHT_R        0x1002         /* shift right          */
   28: #define KC_SHT_L        0x1003         /* shift left          */
   29: #define KC_EXP          0x1004          /* expansion            */
   30: #define KC_CMD          0x1005          /* command            */
   31: #define KC_JPN0         0x1006         /* Japanese Hiragana                */
   32: #define KC_JPN1         0x1007         /* Japanese Katanaka */
   33: #define KC_ENG0         0x1008         /* English                    */
   34: #define KC_ENG1         0x1009         /* English CAPS                */
   35: #define KC_KBSEL        0x100a         /* Kana <-> Roman input swap      */
   36: #define KC_ENGALT       0x100b                /* -> English <-->English CAPS  */
   37: #define KC_JPNALT       0x100c                /* -> Hiragana <-> Katakana       */
   38: 
   39: #define KC_HAN          0x1150          /* Zenkaku <-> Hankaku switch      */
   40: #define KC_JPN0_Z       0x1016               /* Japanese Hiragana & Zenkaku   */
   41: #define KC_JPN1_Z       0x1017               /* Japanese Katakana & Zenkaku    */
   42: #define KC_ENG0_H       0x1018               /* English & Hankaku           */
   43: #define KC_ENG1_H       0x1019               /* English CAPS & Hankaku  */
   44: 
   45: /* key code for PD simulation */
   46: #define KC_HOME         0x1245         /* Home                        */
   47: #define KC_PGUP         0x1246         /* PageUp              */
   48: #define KC_PGDN         0x1247         /* PageDown            */
   49: #define KC_END          0x125e          /* End                  */
   50: 
   51: #define KC_CC_U         0x0100         /* main CC UP   */
   52: #define KC_CC_D         0x0101         /* main CC DOWN    */
   53: #define KC_CC_R         0x0102         /* main CC RIGHT    */
   54: #define KC_CC_L         0x0103         /* main CC LEFT    */
   55: 
   56: #define KC_SC_U         0x0104         /* sub CC key UP  */
   57: #define KC_SC_D         0x0105         /* sub CC key DOWN  */
   58: #define KC_SC_R         0x0106         /* sub CC key RIGHT  */
   59: #define KC_SC_L         0x0107         /* sub CC LEFT  */
   60: 
   61: #define KC_SS_U         0x0108         /* scroll key UP    */
   62: #define KC_SS_D         0x0109         /* scroll key DOWN    */
   63: #define KC_SS_R         0x010a         /* scroll key RIGHT   */
   64: #define KC_SS_L         0x010b         /* scroll key LEFT   */
   65: 
   66: #define KC_PG_U         0x010c         /* page key UP */
   67: #define KC_PG_D         0x010d         /* page key DOWN */
   68: #define KC_PG_R         0x010e         /* page key RIGHT */
   69: #define KC_PG_L         0x010f         /* page key LEFT */
   70: 
   71: /* BREAK key code */
   72: #define BREAK_CODE      0x1140               /* [command] + [delete]    */
   73: 
   74: /* INSERT key code */
   75: #define INS_CODE        0x114c         /* insert                     */
   76: 
   77: /* other special keys */
   78: #define KC_NUL          0x0000          /* NUL key          */
   79: #define KC_IEND         0x0004         /* input end       */
   80: #define KC_BS           0x0008           /* one character back space       */
   81: #define KC_TAB          0x0009          /* tab                    */
   82: #define KC_NL           0x000a           /* change paragraph          */
   83: #define KC_CR           0x000d           /* newline                  */
   84: #define KC_CAN          0x0018          /* cancel */
   85: #define KC_ASSIST       0x001b                /* auxiliary support, assistance  */
   86: #define KC_CNV          0x001e          /* conversion */
   87: #define KC_RCNV         0x001f         /* reverse conversion (no conversion)   */
   88: #define KC_DEL          0x007f          /* deletion                  */
   89: #define KC_CNV0         0x1151         /* no conversion (Hiragana conversion) */
   90: #define KC_CNV1         0x1152         /* SHIFT+no conversion (Katakana conversion) */
   91: #define KC_SPACE        0x2121         /* space            */
   92: 
   93: #define KC_PRSCRN       0x1148                /* Print Screnn               */
   94: 
   95: #define KC_PF1          0x1161          /* PF1                  */
   96: #define KC_PF2          0x1162          /* PF2                  */
   97: #define KC_PF3          0x1163          /* PF3                  */
   98: #define KC_PF4          0x1164          /* PF4                  */
   99: #define KC_PF5          0x1165          /* PF5                  */
  100: #define KC_PF6          0x1166          /* PF6                  */
  101: #define KC_PF7          0x1167          /* PF7                  */
  102: #define KC_PF8          0x1168          /* PF8                  */
  103: #define KC_PF9          0x1169          /* PF9                  */
  104: #define KC_PF10         0x116a         /* PF10                        */
  105: #define KC_PF11         0x116b         /* PF11                        */
  106: #define KC_PF12         0x116c         /* PF12                        */
  107: 
  108: /*
  109:  * Values from 0x1161 to 0x11ff are reserved as function keys
  110:  * Values from 0x1300 to 0x1fff are reserved for user application (for any purpose)
  111:  * other undefined area is reserved for system use
  112:  */
  113: 
  114: #endif /* __DEVICE_KEYCODE_H__ */