MCPcopy Create free account
hub / github.com/DISTRHO/DPF / onKeyUp

Function onKeyUp

distrho/src/DistrhoUIVST3.cpp:275–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

translateVstKeyCodeFunction · 0.85
d_debugFunction · 0.85
translateVST3ModifiersFunction · 0.85

Tested by

no test coverage detected