NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xsrc/48347: Cannot input Japanese special keys of JP106 keyboard with NetBSD/evbarm(RPI) or some arch.



The following reply was made to PR xsrc/48347; it has been noted by GNATS.

From: Yasushi Oshima <oshima-ya%yagoto-urayama.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: xsrc/48347: Cannot input Japanese special keys of JP106
 keyboard with NetBSD/evbarm(RPI) or some arch.
Date: Sun, 03 Nov 2013 03:25:25 +0900 (JST)

 I have mistaken in my previous patch.
 
 This is a new patch.
 
 RCS file: 
/cvsroot/xsrc/external/mit/xf86-input-keyboard/dist/src/bsd_KbdMap.c,v
 retrieving revision 1.8
 diff -u -r1.8 bsd_KbdMap.c
 --- bsd_KbdMap.c        16 Jul 2012 12:49:42 -0000      1.8
 +++ bsd_KbdMap.c        2 Nov 2013 17:42:09 -0000
 @@ -346,17 +346,33 @@
         /* 132 */ KEY_NOTUSED,
         /* 133 */ KEY_NOTUSED,
         /* 134 */ KEY_NOTUSED,
 -       /* 135 */ KEY_NOTUSED,
 -       /* 136 */ KEY_NOTUSED,
 -       /* 137 */ KEY_NOTUSED,
 -       /* 138 */ KEY_NOTUSED,
 -       /* 139 */ KEY_NOTUSED,
 -       /* 140 */ KEY_NOTUSED,
 -       /* 141 */ KEY_NOTUSED,
 -       /* 142 */ KEY_NOTUSED,
 -       /* 143 */ KEY_NOTUSED,
 -       /* 144 */ KEY_NOTUSED,
 -       /* 145 */ KEY_NOTUSED,
 +/*
 + * Special keycode for For Japanese keyboard
 + * Override atKeyname HKTG and BSlash2 code to unique for JP106 keybaord
 + */
 +#undef KEY_HKTG
 +#define KEY_HKTG      200     /* Japanee Hiragana Katakana Toggle */
 +#undef KEY_BSlash2
 +#define KEY_BSlash2   203     /* Japanese '\_' key */
 +
 +      /* 135 */ KEY_BSlash2,  /* Japanese 106 kbd: '\_' */
 +      /* 136 */ KEY_HKTG,     /* Japanese 106 kbd: Hiragana Katakana toggle */
 +      /* 137 */ KEY_Yen,      /* Japanese 106 kbd: '\|' */
 +      /* 138 */ KEY_XFER,     /* Japanese 106 kbd: Henkan */
 +      /* 139 */ KEY_NFER,     /* Japanese 106 kbd: Muhenkan */
 +      /* 140 */ KEY_NOTUSED,
 +      /* 141 */ KEY_NOTUSED,
 +      /* 142 */ KEY_NOTUSED,
 +      /* 143 */ KEY_NOTUSED,
 +/*
 + * Special keycode for For Korean keyboard
 + * Define Hangul and Hangul_Hanja unique key code
 + * These keys also use KANA and EISU on some Macintosh Japanese USB Keyboards
 + */
 +#define KEY_Hangul            201     /* Also KANA Key on Mac JP USB kbd */
 +#define KEY_Hangul_Hanja      202     /* Also EISU Key on Mac JP USB kbd */
 +      /* 144 */ KEY_Hangul,           /* Korean 106 kbd: Hangul */
 +      /* 145 */ KEY_Hangul_Hanja,     /* Korean 106 kbd: Hangul Hanja */
         /* 146 */ KEY_NOTUSED,
         /* 147 */ KEY_NOTUSED,
         /* 148 */ KEY_NOTUSED,
 
 I tested this on NetBSD/evbarm on RPI, NetBSD/dreamcast, and NetBSD/amd64(*1).
 
 *1:
 On i386 or amd64:
  This will occur only when using USB JP keyboard and specifying 
  wskbd protocol explicitly in xorg.conf as folows:
 
   Section "InputDevice"
         Identifier  "Keyboard0"
         Driver      "kbd"
         Option      "Protocol" "wskbd"
    EndSection
 
 
 Thanks.
 


Home | Main Index | Thread Index | Old Index