Lines Matching refs:kke
238 kbdAppKeyEvent (KBDKeyEvent *kke) { in kbdAppKeyEvent() argument
243 if (KBD_KEY_MODE_UP(kke->mode)) { in kbdAppKeyEvent()
249 if (kke->unicode == KBK_Void) { in kbdAppKeyEvent()
254 OSReport ("ch %d hid code: 0x%02x v down\n", kke->channel, kke->hid); in kbdAppKeyEvent()
257 if (kke->unicode == KBK_Caps_Lock || in kbdAppKeyEvent()
258 kke->unicode == KBK_Num_Lock || in kbdAppKeyEvent()
259 kke->unicode == KBK_Scroll_Lock) { in kbdAppKeyEvent()
265 KBDGetModState(kke->channel, &ms); in kbdAppKeyEvent()
272 KBDSetLedsRetry(kke->channel, leds); in kbdAppKeyEvent()
276 if (KBD_UC_IS_MODIFIER(kke->unicode)) { in kbdAppKeyEvent()
280 KBD_CALL (KBDGetCountry (kke->channel, &country)); in kbdAppKeyEvent()
282 OSReport("ch %d key: -> ", kke->channel); in kbdAppKeyEvent()
286 if (KBD_UC_IS_PRIVATE(kke->unicode) || (kke->unicode <= ' ')) { in kbdAppKeyEvent()
289 if (kke->unicode == SpecialTable[i].code) { in kbdAppKeyEvent()
297 outputUTF8(kke->unicode); in kbdAppKeyEvent()
303 OSReport (" (%s) utf32 unicode: 0x%08x", countryName[country], kke->unicode); in kbdAppKeyEvent()
307 if (kke->modState & KBD_MS_SHIFT) OSReport("SHF "); in kbdAppKeyEvent()
308 if (kke->modState & KBD_MS_CAPS_LOCK) OSReport("CPL "); in kbdAppKeyEvent()
309 if (kke->modState & KBD_MS_NUM_LOCK) OSReport("NML "); in kbdAppKeyEvent()
310 if (kke->modState & KBD_MS_CTRL) OSReport("CTL "); in kbdAppKeyEvent()
311 if (kke->modState & KBD_MS_ALTGR) OSReport("ATG "); in kbdAppKeyEvent()
312 if (kke->modState & KBD_MS_LANG1) OSReport("LA1 "); in kbdAppKeyEvent()
313 if (kke->modState & KBD_MS_LANG2) OSReport("LA2 "); in kbdAppKeyEvent()
314 if (kke->modState & KBD_MS_ALT) OSReport("ALT "); in kbdAppKeyEvent()
315 if (kke->modState & KBD_MS_GUI) OSReport("GUI "); in kbdAppKeyEvent()
316 if (kke->modState & KBD_MS_EXTRA) OSReport("EXT "); in kbdAppKeyEvent()
322 if (kke->unicode == KBK_Katakana_Hiragana) { in kbdAppKeyEvent()
325 kke->modState = (KBDModState) (kke->modState & ~(KBD_MS_HIRAGANA | KBD_MS_KATAKANA)); in kbdAppKeyEvent()
330 KBD_CALL( KBDSetModState(kke->channel, kke->modState) ); in kbdAppKeyEvent()
334 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_HIRAGANA)) ); in kbdAppKeyEvent()
338 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_KATAKANA)) ); in kbdAppKeyEvent()
347 if (kke->unicode == ' ' && ((kke->modState & KBD_MS_ALT)==KBD_MS_ALT)) { in kbdAppKeyEvent()
351 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_LANG1)) ); in kbdAppKeyEvent()
354 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState & ~KBD_MS_LANG1)) ); in kbdAppKeyEvent()