Two new outputs functions have been added:
increment_value [value] [interval between increments in milliseconds]
decrement_value [value] [interval between decrements in milliseconds]
The first parameter, [value], is the amount the value will be incremented or decremented. The default parameter value is 10. When the second parameter, [interval...], is missing, the output value will increment/decrement each time the input transitions from off to on. When present, the second parameter is the interval between each change in the value.
The functions are a form of latch and will work with force_off, toggle & normal in the same ways as other latching functions. If switching modes, the value will be maintained only if the new mode has the same output with a latching function.
Examples:
right_2 | increment_value 50 | mp_right_puff |
right_2 | force_off 500 | mp_right_puff |
The first puff will change the output value from 0 to 50%. The second puff will change the output to 100%. A long puff longer than 500 ms will clear the output value to 0.
left_joy_up | increment_value 1 100 | mp_center_sip |
|
|
|
|
|
|
| up increases while sip active |
left_joy_up | decrement_value 1 100 | mp_center_puff |
|
|
|
|
|
|
| up decreases while puff active |
left_joy_up | force_off | lip |
|
|
|
|
|
|
| centers joystick |
left_joy_up | normal | up |
|
|
|
|
|
|
| directly controls up value |
left_joy_up | force_off | down |
|
|
|
|
|
|
| clears any latched up value |
left_joy_down | decrement_value 1 100 | mp_center_sip |
|
|
|
|
|
|
| down decreases while sip active |
left_joy_down | increment_value 1 100 | mp_center_puff |
|
|
|
|
|
|
| down increases while puff active |
left_joy_down | force_off | lip |
|
|
|
|
|
|
| centers joystick |
left_joy_down | force_off | up |
|
|
|
|
|
|
| clears any latched down value |
left_joy_down | normal | down |
|
|
|
|
|
|
| directly controls down value |
The joystick output will move up slowly as the center sip is held. It will move down while the center puff is held. Pressing the Lip will center the joystick. Moving the joystick up or down will clear the latched value and allow direct control.
Run Add-ons -> Quadstick -> Update IO validation lists to see the new functions in the drop down list.