Mercurial > hg > touchkeys
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3580ffe87dc8 |
---|---|
1 /* | |
2 TouchKeys: multi-touch musical keyboard control software | |
3 Copyright (c) 2013 Andrew McPherson | |
4 | |
5 This program is free software: you can redistribute it and/or modify | |
6 it under the terms of the GNU General Public License as published by | |
7 the Free Software Foundation, either version 3 of the License, or | |
8 (at your option) any later version. | |
9 | |
10 This program is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 GNU General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU General Public License | |
16 along with this program. If not, see <http://www.gnu.org/licenses/>. | |
17 | |
18 ===================================================================== | |
19 | |
20 TouchkeyMultiFingerTriggerMappingFactory.h: factory for the multiple- | |
21 finger trigger mapping, which performs actions when two or more fingers | |
22 are added or removed from the key. | |
23 */ | |
24 | |
25 | |
26 #ifndef __TouchKeys__TouchkeyMultiFingerTriggerMappingFactory__ | |
27 #define __TouchKeys__TouchkeyMultiFingerTriggerMappingFactory__ | |
28 | |
29 #include "../TouchkeyBaseMappingFactory.h" | |
30 #include "TouchkeyMultiFingerTriggerMapping.h" | |
31 | |
32 class TouchkeyMultiFingerTriggerMappingFactory : public TouchkeyBaseMappingFactory<TouchkeyMultiFingerTriggerMapping> { | |
33 private: | |
34 | |
35 public: | |
36 // ***** Constructor ***** | |
37 | |
38 // Default constructor, containing a reference to the PianoKeyboard class. | |
39 TouchkeyMultiFingerTriggerMappingFactory(PianoKeyboard &keyboard, MidiKeyboardSegment& segment) | |
40 : TouchkeyBaseMappingFactory<TouchkeyMultiFingerTriggerMapping>(keyboard, segment) {} | |
41 | |
42 // ***** Destructor ***** | |
43 | |
44 ~TouchkeyMultiFingerTriggerMappingFactory() {} | |
45 | |
46 // ***** Accessors / Modifiers ***** | |
47 | |
48 virtual const std::string factoryTypeName() { return "Multi-Finger\nTrigger"; } | |
49 }; | |
50 | |
51 #endif /* defined(__TouchKeys__TouchkeyMultiFingerTriggerMappingFactory__) */ |