void Button::mouseReleased(const event::MouseEvent& e) { if(e.getButton() == event::MouseEvent::MOUSE_BUTTON2) { setSelected(false); } }
void Button::mousePressed(const event::MouseEvent& e) { if(e.getButton() == event::MouseEvent::MOUSE_BUTTON2) { setSelected(true); } }