Lines Matching refs:KeyCode
116 KeyCode keyCode = (*iter).GetKeyCode();
117 GetDeviceManager()->SendKeyEvent(keyCode, false);
569 KeyCode keyCode;
571 keyCode = (KeyCode) ConvertKeyCode(event.GetKeyCode());
572 if (keyCode != kKeyCodeUnknown) {
573 if (!IsKeyPressed(keyCode)) {
574 //printf("PW: down: key %d\n", keyCode);
575 GetDeviceManager()->SendKeyEvent(keyCode, true);
576 AddPressedKey(keyCode);
589 KeyCode keyCode;
591 keyCode = (KeyCode) ConvertKeyCode(event.GetKeyCode());
592 if (keyCode != kKeyCodeUnknown) {
594 if (IsKeyPressed(keyCode)) {
595 //printf("PW: up: key %d\n", keyCode);
596 GetDeviceManager()->SendKeyEvent(keyCode, false);
597 RemovePressedKey(keyCode);
620 KeyCode keyCode = mpMOHButton->GetKeyCode();
621 GetDeviceManager()->SendKeyEvent(keyCode, true);
622 mMouseKeySent = keyCode;
623 AddPressedKey(keyCode);
912 KeyCode keyCode;
915 keyCode = (*iter).GetKeyCode();
916 pButton = pPhoneView->FindButtonByKey(keyCode);
936 void PhoneWindow::AddPressedKey(KeyCode keyCode)
946 if (keyCode == kKeyCodeUnknown) {
953 if ((*iter).GetKeyCode() == keyCode)
958 newInfo.SetKeyCode(keyCode);
960 //printf("--- added down=%d\n", keyCode);
963 //printf("--- already have down=%d\n", keyCode);
972 void PhoneWindow::RemovePressedKey(KeyCode keyCode)
981 if ((*iter).GetKeyCode() == keyCode) {
983 //printf("--- removing down=%d\n", keyCode);
989 //printf("--- didn't find down=%d\n", keyCode);
1003 KeyCode keyCode = (*iter).GetKeyCode();
1004 GetDeviceManager()->SendKeyEvent(keyCode, false);
1014 bool PhoneWindow::IsKeyPressed(KeyCode keyCode)
1018 if ((*iter).GetKeyCode() == keyCode)