We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Having a small problem with controlP5 in android. The first press of a button triggers the mouseoverstate and not a trigger of the button. Is there anyway to bypass this? I have tried to set the mouseOver to true but doesnt help.
The three image files are being used for debug. Really i only need two.
PImage[] imgsMinus = {loadImage("Volume-2.png"), loadImage("Volume-1.png"), loadImage("Volume.png")};
PImage[] imgsPlus = {loadImage("Volume-2.png"), loadImage("Volume-1.png"), loadImage("Volume.png")};
cp5.addButton("down")
.setValue(-1)
.setMouseOver(true)
.setImages(imgsMinus)
.updateSize()
.setPosition(100, 100)
cp5.addButton("UP")
.setValue(1)
.setMouseOver(true)
.setImages(imgsPlus)
.updateSize()
.setPosition(100, 100)
Answers
If working in Android, consider using widgets from the Android API:
https://forum.processing.org/two/discussion/comment/58607/#Comment_58607
https://forum.processing.org/two/discussion/comment/35865/#Comment_35865
Kf
The problem is the ap needs to run across multiple platforms, including android. i have just done it all manually but if anyone has a work around for this it would be apreciated. It seems im not the only one with this issue.
https://github.com/sojamo/controlp5/issues/92 https://forum.processing.org/two/discussion/4346/processing-application-on-a-touch-screen-tablet