Lines Matching refs:kke
237 kbdAppKeyEvent (KBDKeyEvent *kke) { in kbdAppKeyEvent() argument
242 if (KBD_KEY_MODE_UP(kke->mode)) { in kbdAppKeyEvent()
248 if (kke->unicode == KBK_Void) { in kbdAppKeyEvent()
253 OSReport ("ch %d hid code: 0x%02x v down\n", kke->channel, kke->hid); in kbdAppKeyEvent()
256 if (kke->unicode == KBK_Caps_Lock || in kbdAppKeyEvent()
257 kke->unicode == KBK_Num_Lock || in kbdAppKeyEvent()
258 kke->unicode == KBK_Scroll_Lock) { in kbdAppKeyEvent()
264 KBDGetModState(kke->channel, &ms); in kbdAppKeyEvent()
271 KBDSetLedsRetry(kke->channel, leds); in kbdAppKeyEvent()
275 if (KBD_UC_IS_MODIFIER(kke->unicode)) { in kbdAppKeyEvent()
279 KBD_CALL (KBDGetCountry (kke->channel, &country)); in kbdAppKeyEvent()
281 OSReport("ch %d key: -> ", kke->channel); in kbdAppKeyEvent()
285 if (KBD_UC_IS_PRIVATE(kke->unicode) || (kke->unicode <= ' ')) { in kbdAppKeyEvent()
288 if (kke->unicode == SpecialTable[i].code) { in kbdAppKeyEvent()
296 outputUTF8(kke->unicode); in kbdAppKeyEvent()
302 OSReport (" (%s) utf32 unicode: 0x%08x", countryName[country], kke->unicode); in kbdAppKeyEvent()
306 if (kke->modState & KBD_MS_SHIFT) OSReport("SHF "); in kbdAppKeyEvent()
307 if (kke->modState & KBD_MS_CAPS_LOCK) OSReport("CPL "); in kbdAppKeyEvent()
308 if (kke->modState & KBD_MS_NUM_LOCK) OSReport("NML "); in kbdAppKeyEvent()
309 if (kke->modState & KBD_MS_CTRL) OSReport("CTL "); in kbdAppKeyEvent()
310 if (kke->modState & KBD_MS_ALTGR) OSReport("ATG "); in kbdAppKeyEvent()
311 if (kke->modState & KBD_MS_LANG1) OSReport("LA1 "); in kbdAppKeyEvent()
312 if (kke->modState & KBD_MS_LANG2) OSReport("LA2 "); in kbdAppKeyEvent()
313 if (kke->modState & KBD_MS_ALT) OSReport("ALT "); in kbdAppKeyEvent()
314 if (kke->modState & KBD_MS_GUI) OSReport("GUI "); in kbdAppKeyEvent()
315 if (kke->modState & KBD_MS_EXTRA) OSReport("EXT "); in kbdAppKeyEvent()
321 if (kke->unicode == KBK_Katakana_Hiragana) { in kbdAppKeyEvent()
324 kke->modState = (KBDModState) (kke->modState & ~(KBD_MS_HIRAGANA | KBD_MS_KATAKANA)); in kbdAppKeyEvent()
329 KBD_CALL( KBDSetModState(kke->channel, kke->modState) ); in kbdAppKeyEvent()
333 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_HIRAGANA)) ); in kbdAppKeyEvent()
337 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_KATAKANA)) ); in kbdAppKeyEvent()
346 if (kke->unicode == ' ' && ((kke->modState & KBD_MS_ALT)==KBD_MS_ALT)) { in kbdAppKeyEvent()
350 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState | KBD_MS_LANG1)) ); in kbdAppKeyEvent()
353 KBD_CALL( KBDSetModState(kke->channel, (KBDModState) (kke->modState & ~KBD_MS_LANG1)) ); in kbdAppKeyEvent()