Using a joystick pad to send a +1 or -1; when the value changes to +1, I want to increment a value every N ms, and when it is -1, I want it to subtract from the value every N ms.

This will, in effect, cause the value to slide, at speed of N, between  0 and 127. I would also need to have these values limited so they do not slide lower than zero or above 127.

any hints on how to implement this?

thanks!!
jjh

--
joe j hahn
joehahn@gmail.com
773.818.2762 cell

"All is fair in lunch and robot wars." ~Джо петух