View Single Post
Old 01-17-2019, 06:46 AM   #2361
dixo
Human being with feelings
 
dixo's Avatar
 
Join Date: May 2011
Posts: 92
Default

Quote:
Originally Posted by Geoff Waddington View Post

0 seconds means continuous update.

Any of the "R" family (e.g. PressFBR) will require this.
Geoff, what exactly do you mean by "continuous update"? Do you mean: instantaneous update upon button press/release? Or a constant flow of updates at max rate?

And I was thinking, if you change the order of the parameters so that the refresh time is at the last position, and if you allow it to be omitted (meaning: no periodic refresh required), the PressFB syntax could handle all cases with a single keyword. No need for the "R" family, but it may complicate your parser.

"Normal" button with feedback, no periodic refresh:
Code:
SomeButton PressFB 90 4a 7f 90 4a 00
Button with feedback and refresh @ 100ms:
Code:
SomeButton PressFB 90 4a 7f 90 4a 00 0.1

Last edited by dixo; 01-17-2019 at 08:30 AM.
dixo is offline   Reply With Quote