diff options
author | John Anderson <ardour@semiosix.com> | 2007-07-21 08:53:44 +0000 |
---|---|---|
committer | John Anderson <ardour@semiosix.com> | 2007-07-21 08:53:44 +0000 |
commit | 46424db99ab51ef7cd0ea4569cece45a140ec3e6 (patch) | |
tree | 1e71da56ec1a2d528cb1533c1b9abfd5b6ee884a /libs/surfaces/mackie/controls.h | |
parent | 7a14cc049b409dfd9fb504d72451e0f5cbd5d764 (diff) |
optimisations on control paths that are used for every midi event
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2167 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/controls.h')
-rw-r--r-- | libs/surfaces/mackie/controls.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/libs/surfaces/mackie/controls.h b/libs/surfaces/mackie/controls.h index 453ef4a091..a4e259465c 100644 --- a/libs/surfaces/mackie/controls.h +++ b/libs/surfaces/mackie/controls.h @@ -170,7 +170,7 @@ public: } /// type() << 8 + midi id of the control. This - /// provides a unique id of any control on the surface. + /// provides a unique id for any control on the surface. int id() const { return ( type() << 8 ) + _id; @@ -211,6 +211,10 @@ public: virtual type_t type() const = 0; + /// Return true if this control is the one and only + /// Jog Wheel + virtual bool is_jog() const { return false; } + private: int _id; int _ordinal; @@ -307,6 +311,17 @@ private: LedRing _led_ring; }; +class Jog : public Pot +{ +public: + Jog( int id, int ordinal, std::string name, Group & group ) + : Pot( id, ordinal, name, group ) + { + } + + virtual bool is_jog() const { return true; } +}; + } #endif |