FireAllEvents equivalent in ImageButton on ControlP5
in
Contributed Library Questions
•
7 months ago
Hi,
I'm trying to access all events from a controller by adapting the sketch ControlP5extendController. The problem is I can't find a way to implement that for an ImageButton. The main sketch consists of an ImageButton (an arrow) which when is pressed a variable keeps increasing at a given rate, and it stops when you release the ImageButton. I tried activateby(PRESSED) but then I can't make the variable stop increasing as the ImageButton doesn't fire any event on RELEASED.
I'm trying to access all events from a controller by adapting the sketch ControlP5extendController. The problem is I can't find a way to implement that for an ImageButton. The main sketch consists of an ImageButton (an arrow) which when is pressed a variable keeps increasing at a given rate, and it stops when you release the ImageButton. I tried activateby(PRESSED) but then I can't make the variable stop increasing as the ImageButton doesn't fire any event on RELEASED.
1