Get hotkeys to work, most of them anyway

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-11-13 14:06:54 +00:00
parent d13e354728
commit d14713bdf9
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
3 changed files with 129 additions and 45 deletions

View file

@ -32,6 +32,7 @@ START_NAMESPACE_DISTRHO
static constexpr const uint32_t kModuleParameters = 24;
class Plugin;
class UI;
struct CardinalPluginContext : rack::Context {
uint32_t bufferSize;
@ -47,6 +48,9 @@ struct CardinalPluginContext : rack::Context {
const float** dataIns;
float** dataOuts;
Plugin* const plugin;
#ifndef HEADLESS
UI* ui;
#endif
CardinalPluginContext(Plugin* const p);
#ifndef HEADLESS
bool addIdleCallback(IdleCallback* cb);