ControlP5 slider multiple events
in
Contributed Library Questions
•
7 months ago
Hi,
I've got a slider that seems to send 3 to 10 events at each mouse click. Can anyone tell me how to stop this?
I've got a slider that seems to send 3 to 10 events at each mouse click. Can anyone tell me how to stop this?
- cp5.addSlider("slider")
.setPosition(100,305)
.setSize(200,20)
.setRange(0,5)
.setValue(5)
.setNumberOfTickMarks(6)
;
- void slider(float theVal) {
println("a slider event: "+ theVal);
} - Results:
a slider event: 0.0
a slider event: 0.0
a slider event: 0.0
a slider event: 5.0
a slider event: 5.0
a slider event: 5.0
a slider event: 5.0
a slider event: 5.0
a slider event: 5.0
a slider event: 5.0
a slider event: 5.0
a slider event: 5.0
a slider event: 5.0
a slider event: 5.0
a slider event: 5.0
Thanks,
Bob
Bob
1