diff Source/Mappings/MultiFingerTrigger/TouchkeyMultiFingerTriggerMappingFactory.h @ 0:3580ffe87dc8

First commit of TouchKeys public pre-release.
author Andrew McPherson <andrewm@eecs.qmul.ac.uk>
date Mon, 11 Nov 2013 18:19:35 +0000
parents
children 0deac2806a7b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Source/Mappings/MultiFingerTrigger/TouchkeyMultiFingerTriggerMappingFactory.h	Mon Nov 11 18:19:35 2013 +0000
@@ -0,0 +1,51 @@
+/*
+  TouchKeys: multi-touch musical keyboard control software
+  Copyright (c) 2013 Andrew McPherson
+
+  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 3 of the License, or
+  (at your option) any later version.
+ 
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ 
+  =====================================================================
+
+  TouchkeyMultiFingerTriggerMappingFactory.h: factory for the multiple-
+  finger trigger mapping, which performs actions when two or more fingers
+  are added or removed from the key.
+*/
+
+
+#ifndef __TouchKeys__TouchkeyMultiFingerTriggerMappingFactory__
+#define __TouchKeys__TouchkeyMultiFingerTriggerMappingFactory__
+
+#include "../TouchkeyBaseMappingFactory.h"
+#include "TouchkeyMultiFingerTriggerMapping.h"
+
+class TouchkeyMultiFingerTriggerMappingFactory : public TouchkeyBaseMappingFactory<TouchkeyMultiFingerTriggerMapping> {
+private:
+  
+public:
+    // ***** Constructor *****
+    
+	// Default constructor, containing a reference to the PianoKeyboard class.
+    TouchkeyMultiFingerTriggerMappingFactory(PianoKeyboard &keyboard, MidiKeyboardSegment& segment)
+    : TouchkeyBaseMappingFactory<TouchkeyMultiFingerTriggerMapping>(keyboard, segment) {}
+	
+    // ***** Destructor *****
+    
+    ~TouchkeyMultiFingerTriggerMappingFactory() {}
+    
+    // ***** Accessors / Modifiers *****
+    
+    virtual const std::string factoryTypeName() { return "Multi-Finger\nTrigger"; }
+};
+
+#endif /* defined(__TouchKeys__TouchkeyMultiFingerTriggerMappingFactory__) */