| 706 | } |
| 707 | |
| 708 | static KeyCode keyCodeFromScanCode(WPARAM w_param, LPARAM l_param) { |
| 709 | static constexpr int kCodeTableSize = 128; |
| 710 | |
| 711 | static constexpr KeyCode kWin32KeyCodeTable[kCodeTableSize] = { |
| 712 | KeyCode::Unknown, |
| 713 | KeyCode::Escape, |
| 714 | KeyCode::Number1, |
| 715 | KeyCode::Number2, |
| 716 | KeyCode::Number3, |
| 717 | KeyCode::Number4, |
| 718 | KeyCode::Number5, |
| 719 | KeyCode::Number6, |
| 720 | KeyCode::Number7, |
| 721 | KeyCode::Number8, |
| 722 | KeyCode::Number9, |
| 723 | KeyCode::Number0, |
| 724 | KeyCode::Minus, |
| 725 | KeyCode::Equals, |
| 726 | KeyCode::Backspace, |
| 727 | KeyCode::Tab, |
| 728 | KeyCode::Q, |
| 729 | KeyCode::W, |
| 730 | KeyCode::E, |
| 731 | KeyCode::R, |
| 732 | KeyCode::T, |
| 733 | KeyCode::Y, |
| 734 | KeyCode::U, |
| 735 | KeyCode::I, |
| 736 | KeyCode::O, |
| 737 | KeyCode::P, |
| 738 | KeyCode::LeftBracket, |
| 739 | KeyCode::RightBracket, |
| 740 | KeyCode::Return, |
| 741 | KeyCode::LCtrl, |
| 742 | KeyCode::A, |
| 743 | KeyCode::S, |
| 744 | KeyCode::D, |
| 745 | KeyCode::F, |
| 746 | KeyCode::G, |
| 747 | KeyCode::H, |
| 748 | KeyCode::J, |
| 749 | KeyCode::K, |
| 750 | KeyCode::L, |
| 751 | KeyCode::Semicolon, |
| 752 | KeyCode::Apostrophe, |
| 753 | KeyCode::Grave, |
| 754 | KeyCode::LShift, |
| 755 | KeyCode::Backslash, |
| 756 | KeyCode::Z, |
| 757 | KeyCode::X, |
| 758 | KeyCode::C, |
| 759 | KeyCode::V, |
| 760 | KeyCode::B, |
| 761 | KeyCode::N, |
| 762 | KeyCode::M, |
| 763 | KeyCode::Comma, |
| 764 | KeyCode::Period, |
| 765 | KeyCode::Slash, |
no outgoing calls
no test coverage detected