| 336 | } |
| 337 | |
| 338 | void KeyboardDisplay::KeyReleased(int key) |
| 339 | { |
| 340 | IDrawableModule::KeyReleased(key); |
| 341 | |
| 342 | key = KeyToLower(key); |
| 343 | auto it = mKeyPressRegister.find(key); |
| 344 | if (it != mKeyPressRegister.end()) |
| 345 | { |
| 346 | int pitch = it->second; |
| 347 | |
| 348 | mKeyPressRegister.erase(key); |
| 349 | if (pitch != -1) |
| 350 | PlayNote(NextBufferTime(false), pitch, 0); |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | void KeyboardDisplay::CheckboxUpdated(Checkbox* checkbox, double time) |
| 355 | { |
nothing calls this directly
no test coverage detected