DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 432cb7c962afdab5bc5811d80f504c51c90e7ba5
parent bb0c16cfdb9d477cdc4485482f8962559b3e85d2
Author: falkTX <falktx@falktx.com>
Date:   Tue, 18 May 2021 00:54:14 +0100

Cleanup

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/src/DistrhoPluginVST.cpp | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/distrho/src/DistrhoPluginVST.cpp b/distrho/src/DistrhoPluginVST.cpp @@ -229,9 +229,9 @@ public: } # endif +# if !DISTRHO_PLUGIN_HAS_EXTERNAL_UI int handlePluginKeyEvent(const bool down, int32_t index, const intptr_t value) { -# if !DISTRHO_PLUGIN_HAS_EXTERNAL_UI d_stdout("handlePluginKeyEvent %i %i %li\n", down, index, (long int)value); using namespace DGL_NAMESPACE; @@ -342,10 +342,10 @@ public: fUI.handlePluginKeyboard(down, static_cast<uint>(index), fKeyboardModifiers); return 1; } -# endif return 0; } +# endif // !DISTRHO_PLUGIN_HAS_EXTERNAL_UI // ------------------------------------------------------------------- @@ -714,6 +714,7 @@ public: fVstUI->idle(); break; +# if !DISTRHO_PLUGIN_HAS_EXTERNAL_UI case effEditKeyDown: if (fVstUI != nullptr) return fVstUI->handlePluginKeyEvent(true, index, value); @@ -723,6 +724,7 @@ public: if (fVstUI != nullptr) return fVstUI->handlePluginKeyEvent(false, index, value); break; +# endif #endif // DISTRHO_PLUGIN_HAS_UI #if DISTRHO_PLUGIN_WANT_STATE