Lines Matching refs:kke
241 kbdAppKeyEvent (KBDKeyEvent *kke) { in kbdAppKeyEvent() argument
246 if (KBD_KEY_MODE_UP(kke->mode)) { in kbdAppKeyEvent()
252 if (kke->unicode == KBK_Void) { in kbdAppKeyEvent()
257 OSReport ("ch %d hid code: 0x%02x v down\n", kke->channel, kke->hid); in kbdAppKeyEvent()
260 if (kke->unicode == KBK_Caps_Lock || in kbdAppKeyEvent()
261 kke->unicode == KBK_Num_Lock || in kbdAppKeyEvent()
262 kke->unicode == KBK_Scroll_Lock) { in kbdAppKeyEvent()
268 KBDGetModState(kke->channel, &ms); in kbdAppKeyEvent()
275 KBDSetLedsRetry(kke->channel, leds); in kbdAppKeyEvent()
279 if (KBD_UC_IS_MODIFIER(kke->unicode)) { in kbdAppKeyEvent()
283 KBD_CALL (KBDGetCountry (kke->channel, &country)); in kbdAppKeyEvent()
285 OSReport("ch %d key: -> ", kke->channel); in kbdAppKeyEvent()
289 if (KBD_UC_IS_PRIVATE(kke->unicode) || (kke->unicode <= ' ')) { in kbdAppKeyEvent()
292 if (kke->unicode == SpecialTable[i].code) { in kbdAppKeyEvent()
300 outputUTF8(kke->unicode); in kbdAppKeyEvent()
306 OSReport (" (%s) utf32 unicode: 0x%08x", countryName[country], kke->unicode); in kbdAppKeyEvent()
310 if (kke->modState & KBD_MS_SHIFT) OSReport("SHF "); in kbdAppKeyEvent()
311 if (kke->modState & KBD_MS_CAPS_LOCK) OSReport("CPL "); in kbdAppKeyEvent()
312 if (kke->modState & KBD_MS_NUM_LOCK) OSReport("NML "); in kbdAppKeyEvent()
313 if (kke->modState & KBD_MS_CTRL) OSReport("CTL "); in kbdAppKeyEvent()
314 if (kke->modState & KBD_MS_ALTGR) OSReport("ATG "); in kbdAppKeyEvent()
315 if (kke->modState & KBD_MS_LANG1) OSReport("LA1 "); in kbdAppKeyEvent()
316 if (kke->modState & KBD_MS_LANG2) OSReport("LA2 "); in kbdAppKeyEvent()
317 if (kke->modState & KBD_MS_ALT) OSReport("ALT "); in kbdAppKeyEvent()
318 if (kke->modState & KBD_MS_GUI) OSReport("GUI "); in kbdAppKeyEvent()
319 if (kke->modState & KBD_MS_EXTRA) OSReport("EXT "); in kbdAppKeyEvent()
325 if (kke->unicode == KBK_Katakana_Hiragana) { in kbdAppKeyEvent()
328 kke->modState = (KBDModState) (kke->modState & ~(KBD_MS_HIRAGANA | KBD_MS_KATAKANA)); in kbdAppKeyEvent()
333 KBD_CALL( KBDSetModState(kke->channel, kke->modState) ); in kbdAppKeyEvent()
337 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_HIRAGANA)) ); in kbdAppKeyEvent()
341 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_KATAKANA)) ); in kbdAppKeyEvent()
350 if (kke->unicode == ' ' && ((kke->modState & KBD_MS_ALT)==KBD_MS_ALT)) { in kbdAppKeyEvent()
354 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_LANG1)) ); in kbdAppKeyEvent()
357 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState & ~KBD_MS_LANG1)) ); in kbdAppKeyEvent()