| 43 | } |
| 44 | |
| 45 | void QwertyController::OnKeyPressed(int key) |
| 46 | { |
| 47 | if (key >= 0 && key < (int)mPressedKeys.size()) |
| 48 | { |
| 49 | mPressedKeys[key] = true; |
| 50 | |
| 51 | MidiNote note; |
| 52 | note.mPitch = key; |
| 53 | note.mVelocity = 127.0f; |
| 54 | note.mChannel = 0; |
| 55 | note.mDeviceName = "keyboard"; |
| 56 | mListener->OnMidiNote(note); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | void QwertyController::OnKeyReleased(int key) |
| 61 | { |
nothing calls this directly
no test coverage detected