2
Copyright (C) 2006,2007 John Anderson
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
sf.parse( File.open "mackie-controls.csv" )
23
buttons = sf.controls.find_all{|x| x.class == Button && x.group.class != Strip}
26
Generated by scripts/generate-button-handlers.erb
28
#include "mackie_button_handler.h"
34
using namespace Mackie;
36
LedState MackieButtonHandler::default_button_press( Button & button )
38
cout << "press: " << button << endl;
41
LedState MackieButtonHandler::default_button_release( Button & button )
43
cout << "release: " << button << endl;
48
buttons.each do |button|
50
LedState MackieButtonHandler::<%=button.name%>_press( Button & button )
52
return default_button_press( button );
55
LedState MackieButtonHandler::<%=button.name%>_release( Button & button )
57
return default_button_release( button );