summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-07-13 18:32:52 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-07-13 18:32:52 +0200
commiteb3a5e8834c1af80fc5196e5c8f5788e8a2b2167 (patch)
tree51b315faab10b1fdbb6508d6f89d818024a6cefb /plugin
parent32606894c67e6be27ba853a8bc3e97c808c14987 (diff)
Introduce input engine isFreewheeling method.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/drumgizmo_plugin.cc5
-rw-r--r--plugin/drumgizmo_plugin.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index 4f3edf2..2b0d2a8 100644
--- a/plugin/drumgizmo_plugin.cc
+++ b/plugin/drumgizmo_plugin.cc
@@ -233,6 +233,11 @@ void DrumGizmoPlugin::Input::post()
{
}
+bool DrumGizmoPlugin::Input::isFreewheeling() const
+{
+ return plugin.getFreeWheel();
+}
+
//
// Output Engine
diff --git a/plugin/drumgizmo_plugin.h b/plugin/drumgizmo_plugin.h
index 0adc240..14189c9 100644
--- a/plugin/drumgizmo_plugin.h
+++ b/plugin/drumgizmo_plugin.h
@@ -119,6 +119,8 @@ private:
void run(size_t pos, size_t len, std::vector<event_t>& events) override;
void post() override;
+ bool isFreewheeling() const override;
+
protected:
DrumGizmoPlugin& plugin;
const Instruments* instruments{nullptr};