Foldback: consistent mouse handling part 1

* un-hardcode button numbers, use portable modifier API
* allow to toggle Send bypass with middle-click
* add support for delete-operator
* Only act on single-click press
This commit is contained in:
Robin Gareus 2021-03-26 02:17:09 +01:00
parent 345726e223
commit b12cad80bc
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 44 additions and 39 deletions

View file

@ -91,7 +91,8 @@ private:
uint32_t _width;
void led_clicked(GdkEventButton *);
gboolean button_press (GdkEventButton*);
bool button_press (GdkEventButton*);
bool button_release (GdkEventButton*);
Gtk::Menu* build_send_menu ();
void set_gain (float new_gain);
void set_send_position (bool post);