Lines Matching refs:kke

240 kbdAppKeyEvent (KBDKeyEvent *kke) {  in kbdAppKeyEvent()  argument
245 if (KBD_KEY_MODE_UP(kke->mode)) { in kbdAppKeyEvent()
251 if (kke->unicode == KBK_Void) { in kbdAppKeyEvent()
256 OSReport ("ch %d hid code: 0x%02x v down\n", kke->channel, kke->hid); in kbdAppKeyEvent()
259 if (kke->unicode == KBK_Caps_Lock || in kbdAppKeyEvent()
260 kke->unicode == KBK_Num_Lock || in kbdAppKeyEvent()
261 kke->unicode == KBK_Scroll_Lock) { in kbdAppKeyEvent()
267 KBDGetModState(kke->channel, &ms); in kbdAppKeyEvent()
274 KBDSetLedsRetry(kke->channel, leds); in kbdAppKeyEvent()
278 if (KBD_UC_IS_MODIFIER(kke->unicode)) { in kbdAppKeyEvent()
282 KBD_CALL (KBDGetCountry (kke->channel, &country)); in kbdAppKeyEvent()
284 OSReport("ch %d key: -> ", kke->channel); in kbdAppKeyEvent()
288 if (KBD_UC_IS_PRIVATE(kke->unicode) || (kke->unicode <= ' ')) { in kbdAppKeyEvent()
291 if (kke->unicode == SpecialTable[i].code) { in kbdAppKeyEvent()
299 outputUTF8(kke->unicode); in kbdAppKeyEvent()
305 OSReport (" (%s) utf32 unicode: 0x%08x", countryName[country], kke->unicode); in kbdAppKeyEvent()
309 if (kke->modState & KBD_MS_SHIFT) OSReport("SHF "); in kbdAppKeyEvent()
310 if (kke->modState & KBD_MS_CAPS_LOCK) OSReport("CPL "); in kbdAppKeyEvent()
311 if (kke->modState & KBD_MS_NUM_LOCK) OSReport("NML "); in kbdAppKeyEvent()
312 if (kke->modState & KBD_MS_CTRL) OSReport("CTL "); in kbdAppKeyEvent()
313 if (kke->modState & KBD_MS_ALTGR) OSReport("ATG "); in kbdAppKeyEvent()
314 if (kke->modState & KBD_MS_LANG1) OSReport("LA1 "); in kbdAppKeyEvent()
315 if (kke->modState & KBD_MS_LANG2) OSReport("LA2 "); in kbdAppKeyEvent()
316 if (kke->modState & KBD_MS_ALT) OSReport("ALT "); in kbdAppKeyEvent()
317 if (kke->modState & KBD_MS_GUI) OSReport("GUI "); in kbdAppKeyEvent()
318 if (kke->modState & KBD_MS_EXTRA) OSReport("EXT "); in kbdAppKeyEvent()
324 if (kke->unicode == KBK_Katakana_Hiragana) { in kbdAppKeyEvent()
327 kke->modState = (KBDModState) (kke->modState & ~(KBD_MS_HIRAGANA | KBD_MS_KATAKANA)); in kbdAppKeyEvent()
332 KBD_CALL( KBDSetModState(kke->channel, kke->modState) ); in kbdAppKeyEvent()
336 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_HIRAGANA)) ); in kbdAppKeyEvent()
340 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_KATAKANA)) ); in kbdAppKeyEvent()
349 if (kke->unicode == ' ' && ((kke->modState & KBD_MS_ALT)==KBD_MS_ALT)) { in kbdAppKeyEvent()
353 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_LANG1)) ); in kbdAppKeyEvent()
356 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState & ~KBD_MS_LANG1)) ); in kbdAppKeyEvent()