Playing around with buttons

This commit is contained in:
2022-06-22 21:42:57 +02:00
parent 2402567330
commit 94d24e37fa
6 changed files with 166 additions and 27 deletions
+1 -1
View File
@@ -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;