| 300 | } |
| 301 | |
| 302 | bool KeyboardDisplay::ShouldConsumeKey(int key) |
| 303 | { |
| 304 | if (mEnabled && mAllowHoverTypingInput) |
| 305 | { |
| 306 | key = KeyToLower(key); |
| 307 | QwertyToPitchResponse res = QwertyToPitchMapping::GetPitchForComputerKey(key); |
| 308 | if (res.mOctaveShift != 0) |
| 309 | return true; |
| 310 | if (res.mPitch != -1) |
| 311 | return true; |
| 312 | } |
| 313 | return false; |
| 314 | } |
| 315 | |
| 316 | void KeyboardDisplay::OnKeyPressed(int key, bool isRepeat) |
| 317 | { |
nothing calls this directly
no test coverage detected