| 273 | } |
| 274 | |
| 275 | v3_result onKeyUp(const int16_t keychar, const int16_t keycode, const int16_t modifiers) |
| 276 | { |
| 277 | DISTRHO_SAFE_ASSERT_INT_RETURN(keychar >= 0 && keychar < 0x7f, keychar, V3_FALSE); |
| 278 | |
| 279 | bool special; |
| 280 | const uint key = translateVstKeyCode(special, keychar, keycode); |
| 281 | d_debug("onKeyUp %d %d %x -> %d %d", keychar, keycode, modifiers, special, key); |
| 282 | |
| 283 | return fUI.handlePluginKeyboardVST(false, special, key, |
| 284 | keycode >= 0 ? static_cast<uint>(keycode) : 0, |
| 285 | translateVST3Modifiers(modifiers)) ? V3_TRUE : V3_FALSE; |
| 286 | } |
| 287 | |
| 288 | v3_result onFocus(const bool state) |
| 289 | { |
nothing calls this directly
no test coverage detected