zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit ddfdeb6099160ee967d9eca37c1cecc3da94c805
parent e7a281d5a6dab00ecf47e223fe54e4440ce84e79
Author: Patrick Desaulniers <desaulniers.patrick@carrefour.cegepvicto.ca>
Date:   Tue, 24 Jul 2018 09:43:19 -0400

Send modifiers to zest_mouse and zest_motion

Diffstat:
Msrc/Plugin/ZynAddSubFX/ZynAddSubFX-UI-Zest.cpp | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Plugin/ZynAddSubFX/ZynAddSubFX-UI-Zest.cpp b/src/Plugin/ZynAddSubFX/ZynAddSubFX-UI-Zest.cpp @@ -28,9 +28,9 @@ struct zest_handles { void (*zest_close)(zest_t*); void (*zest_setup)(zest_t*); void (*zest_draw)(zest_t*); - void (*zest_motion)(zest_t*, int x, int y); + void (*zest_motion)(zest_t*, int x, int y, int mod); void (*zest_scroll)(zest_t*, int x, int y, int dx, int dy); - void (*zest_mouse)(zest_t *z, int button, int action, int x, int y); + void (*zest_mouse)(zest_t *z, int button, int action, int x, int y, int mod); void (*zest_key)(zest_t *z, char *key, bool press); void (*zest_resize)(zest_t *z, int w, int h); void (*zest_special)(zest_t *z, int key, int press); @@ -173,14 +173,14 @@ protected: bool onMouse(const MouseEvent &m) override { if(z.zest) - z.zest_mouse(z.zest, m.button, m.press, m.pos.getX(), m.pos.getY()); + z.zest_mouse(z.zest, m.button, m.press, m.pos.getX(), m.pos.getY(), m.mod); return false; } bool onMotion(const MotionEvent &m) override { if(z.zest) - z.zest_motion(z.zest, m.pos.getX(), m.pos.getY()); + z.zest_motion(z.zest, m.pos.getX(), m.pos.getY(), m.mod); return false; }