Instruments for mouse, Knobster and all

Working on a instrument project or just finished a project? Show it to others!

Moderators: Ralph, russ

Post Reply
Message
Author
Detlef
Posts: 94
Joined: Mon Nov 16, 2020 9:43 am
Location: Bavaria

Instruments for mouse, Knobster and all

#1 Post by Detlef » Sun May 16, 2021 4:00 pm

Hi experts out there,

I have a Knobster and I like handling AM instruments with it a lot. Now, if I develop an instrument, what is the best way to enable it for mouse use also?
I want to use inner knob, outer knob and push.
This does work for Knobster, but not for mouse-only users:

Code: Select all

x = 41
y = 392
w = 67
h = 67
dial_add("knob1.png", x, y, w, h, 3, cbDialSpeedbug, cbKnob1Pressed, cbKnob1Released)
button_add(nil, nil, x, y, w, h, cbKnob1Pressed, cbKnob1Released)
If know if I add another dial_add call with the same x, y, w, h, I have inner and outer knob functionality. But how for mouse AND Knobster?

Thank you
Detlef

User avatar
Ralph
Posts: 5103
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Instruments for mouse, Knobster and all

#2 Post by Ralph » Sun May 16, 2021 5:35 pm

For mouse and Knobster you will always have to make the bottom dial bigger. What I usually do is add some transparent space around the actual image, so it's bigger and you have more space to 'hit' with your mouse.

Detlef
Posts: 94
Joined: Mon Nov 16, 2020 9:43 am
Location: Bavaria

Re: Instruments for mouse, Knobster and all

#3 Post by Detlef » Mon May 17, 2021 6:39 pm

Ralph,

thank you. I will try that.

Detlef

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests