Playing around with buttons
This commit is contained in:
@@ -56,7 +56,7 @@ void MouseVisitor::visit(const SDLPP::RenderObject &obj) {
|
||||
break;
|
||||
case BUTTON_ID:
|
||||
select_flags |= SELECTED_BUTTON;
|
||||
cur_button = reinterpret_cast<const Button*>(&obj);
|
||||
cur_button = reinterpret_cast<const Button*>(&obj)->getButtonIndex();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user