~hp/patchmatrix

97d908c681593bfad426b4b0e8e298f83670560d — Hanspeter Portner 2 years ago a4f0949
removing nodes needs right button + ctrl.
3 files changed, 6 insertions(+), 4 deletions(-)

M README.md
M VERSION
M patchmatrix_nk.c
M README.md => README.md +1 -1
@@ 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


M VERSION => VERSION +1 -1
@@ 1,1 1,1 @@
0.25.17
0.25.19

M patchmatrix_nk.c => patchmatrix_nk.c +4 -2
@@ 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;