aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2021-07-14 21:28:38 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2021-07-14 21:28:38 +0200
commit97d908c681593bfad426b4b0e8e298f83670560d (patch)
tree051ff98e66e67c487db889ff70a2279a24c56e0a
parenta4f09491b570da01afa2de4cf827b719c89c3af6 (diff)
downloadpatchmatrix-97d908c681593bfad426b4b0e8e298f83670560d.tar.xz
removing nodes needs right button + ctrl.
-rw-r--r--README.md2
-rw-r--r--VERSION2
-rw-r--r--patchmatrix_nk.c6
3 files changed, 6 insertions, 4 deletions
diff --git a/README.md b/README.md
index aa85b49..c442b5e 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/VERSION b/VERSION
index 7753be7..30107f1 100644
--- a/VERSION
+++ b/VERSION
@@ -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;