How to remove objects in my program using a right mouse click
in
Programming Questions
•
4 months ago
I'm making a program where I can make pictures using circles. I've got the duplicating of the circles down packed using the left click, but I want to remove them when I right click on the circles. Below I've got the code there to create them using the left mouse click but I'm not sure what code I would put in there to remove them, help?
void mousePressed()
{
if (mouseButton == LEFT) {
int t = Balls.size();
for( int i=0; i < t; i++)
Balls.get(i).dragging();
} else {
}
}
1