diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2021-07-14 21:28:38 +0200 |
---|---|---|
committer | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2021-07-14 21:28:38 +0200 |
commit | 97d908c681593bfad426b4b0e8e298f83670560d (patch) | |
tree | 051ff98e66e67c487db889ff70a2279a24c56e0a | |
parent | a4f09491b570da01afa2de4cf827b719c89c3af6 (diff) | |
download | patchmatrix-97d908c681593bfad426b4b0e8e298f83670560d.tar.xz |
removing nodes needs right button + ctrl.
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | patchmatrix_nk.c | 6 |
3 files changed, 6 insertions, 4 deletions
@@ -73,7 +73,7 @@ out of the __patchmatrix__ top folder of the downloaded package into your * Wheel: _change gain coarse_ * Left button + Shift + move: _change gain fine_ * Wheel + Shift: _change gain fine_ -* Right button: _remove_ +* Right button + Ctrl: _remove_ ##### Monitor @@ -1 +1 @@ -0.25.17 +0.25.19 diff --git a/patchmatrix_nk.c b/patchmatrix_nk.c index 447819d..d8c963d 100644 --- a/patchmatrix_nk.c +++ b/patchmatrix_nk.c @@ -112,7 +112,8 @@ _client_moveable(struct nk_context *ctx, app_t *app, client_t *client, } if (is_hovering - && nk_input_is_mouse_pressed(in, NK_BUTTON_RIGHT) ) + && nk_input_is_mouse_pressed(in, NK_BUTTON_RIGHT) + && nk_input_is_key_down(in, NK_KEY_CTRL) ) { // consume mouse event in->mouse.buttons[NK_BUTTON_RIGHT].down = nk_false; @@ -867,7 +868,8 @@ node_editor_client_conn(struct nk_context *ctx, app_t *app, client_conn->moving = true; } else if(is_hovering - && nk_input_is_mouse_pressed(in, NK_BUTTON_RIGHT) ) + && nk_input_is_mouse_pressed(in, NK_BUTTON_RIGHT) + && nk_input_is_key_down(in, NK_KEY_CTRL) ) { // consume mouse event in->mouse.buttons[NK_BUTTON_RIGHT].down = nk_false; |