Lines Matching refs:kke
230 kbdAppKeyEvent (KBDKeyEvent *kke) { in kbdAppKeyEvent() argument
235 if (KBD_KEY_MODE_UP(kke->mode)) { in kbdAppKeyEvent()
241 if (kke->unicode == KBK_Void) { in kbdAppKeyEvent()
246 OSReport ("ch %d hid code: 0x%02x v down\n", kke->channel, kke->hid); in kbdAppKeyEvent()
249 if (kke->unicode == KBK_Caps_Lock || in kbdAppKeyEvent()
250 kke->unicode == KBK_Num_Lock || in kbdAppKeyEvent()
251 kke->unicode == KBK_Scroll_Lock) { in kbdAppKeyEvent()
257 KBDGetModState(kke->channel, &ms); in kbdAppKeyEvent()
264 KBDSetLedsRetry(kke->channel, leds); in kbdAppKeyEvent()
268 if (KBD_UC_IS_MODIFIER(kke->unicode)) { in kbdAppKeyEvent()
272 KBD_CALL (KBDGetCountry (kke->channel, &country)); in kbdAppKeyEvent()
274 OSReport("ch %d key: -> ", kke->channel); in kbdAppKeyEvent()
278 if (KBD_UC_IS_PRIVATE(kke->unicode) || (kke->unicode <= ' ')) { in kbdAppKeyEvent()
281 if (kke->unicode == SpecialTable[i].code) { in kbdAppKeyEvent()
289 outputUTF8(kke->unicode); in kbdAppKeyEvent()
295 OSReport (" (%s) utf32 unicode: 0x%08x", countryName[country], kke->unicode); in kbdAppKeyEvent()
299 if (kke->modState & KBD_MS_SHIFT) OSReport("SHF "); in kbdAppKeyEvent()
300 if (kke->modState & KBD_MS_CAPS_LOCK) OSReport("CPL "); in kbdAppKeyEvent()
301 if (kke->modState & KBD_MS_NUM_LOCK) OSReport("NML "); in kbdAppKeyEvent()
302 if (kke->modState & KBD_MS_CTRL) OSReport("CTL "); in kbdAppKeyEvent()
303 if (kke->modState & KBD_MS_ALTGR) OSReport("ATG "); in kbdAppKeyEvent()
304 if (kke->modState & KBD_MS_LANG1) OSReport("LA1 "); in kbdAppKeyEvent()
305 if (kke->modState & KBD_MS_LANG2) OSReport("LA2 "); in kbdAppKeyEvent()
306 if (kke->modState & KBD_MS_ALT) OSReport("ALT "); in kbdAppKeyEvent()
307 if (kke->modState & KBD_MS_GUI) OSReport("GUI "); in kbdAppKeyEvent()
308 if (kke->modState & KBD_MS_EXTRA) OSReport("EXT "); in kbdAppKeyEvent()
314 if (kke->unicode == KBK_Katakana_Hiragana) { in kbdAppKeyEvent()
317 kke->modState = (KBDModState) (kke->modState & ~(KBD_MS_HIRAGANA | KBD_MS_KATAKANA)); in kbdAppKeyEvent()
322 KBD_CALL( KBDSetModState(kke->channel, kke->modState) ); in kbdAppKeyEvent()
326 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_HIRAGANA)) ); in kbdAppKeyEvent()
330 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_KATAKANA)) ); in kbdAppKeyEvent()
339 if (kke->unicode == ' ' && ((kke->modState & KBD_MS_ALT)==KBD_MS_ALT)) { in kbdAppKeyEvent()
343 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_LANG1)) ); in kbdAppKeyEvent()
346 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState & ~KBD_MS_LANG1)) ); in kbdAppKeyEvent()