summaryrefslogtreecommitdiff
path: root/gtk2_ardour/tempo_dialog.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-05-04 16:12:26 +0200
committerRobin Gareus <robin@gareus.org>2017-05-04 16:13:10 +0200
commited4d17a8ff9000d66af91f4db33fd16cc388691e (patch)
tree54984cf0913c511e6fd8ed927c61c3460dcf213c /gtk2_ardour/tempo_dialog.h
parentc784f7096611da43db0604a7641253773d5f1515 (diff)
Update Tempo Tapping:
* Allow tap with keyboard (Space, Enter) * Ignore double-clicks (2nd rapid event skewed calculation)
Diffstat (limited to 'gtk2_ardour/tempo_dialog.h')
-rw-r--r--gtk2_ardour/tempo_dialog.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/tempo_dialog.h b/gtk2_ardour/tempo_dialog.h
index 06c9732fe5..baa671df43 100644
--- a/gtk2_ardour/tempo_dialog.h
+++ b/gtk2_ardour/tempo_dialog.h
@@ -58,9 +58,12 @@ private:
void pulse_change ();
void tempo_type_change ();
void lock_style_change ();
- bool tap_tempo_button_press (GdkEventButton* );
+ bool tap_tempo_key_press (GdkEventKey*);
+ bool tap_tempo_button_press (GdkEventButton*);
bool tap_tempo_focus_out (GdkEventFocus* );
+ void tap_tempo ();
+
typedef std::map<std::string,float> NoteTypes;
NoteTypes note_types;