Page 1 of 1

Up/Down buttons velocity control?

Posted: Tue Oct 28, 2014 11:21 am
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.

Re: Up/Down buttons velocity control?

Posted: Tue Oct 28, 2014 11:47 am
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.

Re: Up/Down buttons velocity control?

Posted: Tue Oct 28, 2014 1:21 pm
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.