Up/Down buttons velocity control?

For general discussion related FlowStone
Post Reply
User avatar
Subquantum
Posts: 24
Joined: Tue Mar 11, 2014 10:20 pm
Location: USA

Up/Down buttons velocity control?

Post by Subquantum »

Does anyone have a good way of adding velocity control to up/down buttons?

I put together these up/down buttons with two digits of precision. However, if I press and hold to increment, it will take forever to get to a high value.
Attachments
Up Down Buttons.fsm
(1.36 KiB) Downloaded 934 times
User avatar
Loopeytunes
Posts: 57
Joined: Tue Jul 13, 2010 11:07 am
Location: Yorkshire, UK
Contact:

Re: Up/Down buttons velocity control?

Post by Loopeytunes »

Hi Sub, if you go inside the buttons ruby code and edit the "Button still held" part of the code (near the bottom of the code) and there you can adjust the speed of the auto incrementing, the part that says "time+0.05" make this a lower number for the auto incrementing to go up faster while the button is held down.
User avatar
Subquantum
Posts: 24
Joined: Tue Mar 11, 2014 10:20 pm
Location: USA

Re: Up/Down buttons velocity control?

Post by Subquantum »

loopeytunes,

Thanks, that will help for one part of my application that goes from 0-30, but for another set of up/down buttons I have to go from 0-500 and if I speed it up I will loose the ability to set precise values on the way up or down.

What I need is for the speed to increase after holding the button for 2-3 seconds. The longer I hold it the faster it increases. I will look over the whole button code and see if I can add this feature to the code.

Any ideas would be greatly appreciated.
Post Reply