The two buttons affect the same counter.
Here is the source code:
buttonF "Up"
with
(buttonF "Up" >+< buttonF "Down")
using the operator
>+<
for parallel composition
Left
and output from the right component is tagged
Right
.
count
function will now receive
Left Click
or Right Click
, depending
on which button was pressed. It has been adjusted accordingly.