summaryrefslogtreecommitdiffstats
path: root/src/controlttrotary.cpp
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2013-06-19 00:46:54 -0400
committerRJ Ryan <rryan@mixxx.org>2013-06-19 00:46:54 -0400
commit25d57b59dff3947212909634864dd82365c9606b (patch)
treef0d0f8a048f8ed2f45c5ff015fc96891662f72f1 /src/controlttrotary.cpp
parente50f9f168fa08f2be6d0f13e8a225bbcc9de09bb (diff)
Moving mixxx/* to the root. A new era begins!
Diffstat (limited to 'src/controlttrotary.cpp')
-rw-r--r--src/controlttrotary.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/controlttrotary.cpp b/src/controlttrotary.cpp
new file mode 100644
index 0000000000..50fc91b95e
--- /dev/null
+++ b/src/controlttrotary.cpp
@@ -0,0 +1,32 @@
+/***************************************************************************
+ controlttrotary.cpp - description
+ -------------------
+ copyright : (C) 2002 by Tue and Ken Haste Andersen
+ email :
+***************************************************************************/
+
+/***************************************************************************
+* *
+* This program is free software; you can redistribute it and/or modify *
+* it under the terms of the GNU General Public License as published by *
+* the Free Software Foundation; either version 2 of the License, or *
+* (at your option) any later version. *
+* *
+***************************************************************************/
+
+#include "controlttrotary.h"
+
+/* -------- ------------------------------------------------------
+ Purpose: Creates a new rotary encoder
+ Input: key
+ -------- ------------------------------------------------------ */
+ControlTTRotary::ControlTTRotary(ConfigKey key) : ControlObject(key) {
+ if (m_pControl) {
+ ControlNumericBehavior* pOldBehavior = m_pControl->setBehavior(
+ new ControlTTRotaryBehavior());
+ delete pOldBehavior;
+ }
+}
+
+
+