refactor input.h and related

This commit is contained in:
A-lex-Ra
2024-02-23 18:49:15 +06:00
parent 9c31c6c8b7
commit 8bb1045e34
12 changed files with 236 additions and 254 deletions
+2 -2
View File
@@ -205,7 +205,7 @@ bool SlotView::isHighlighted() const {
return highlighted;
}
void SlotView::clicked(gui::GUI* gui, int button) {
void SlotView::clicked(gui::GUI* gui, mousecode button) {
if (bound == nullptr)
return;
@@ -260,7 +260,7 @@ void SlotView::clicked(gui::GUI* gui, int button) {
}
void SlotView::focus(gui::GUI* gui) {
clicked(gui, 0);
clicked(gui, mousecode::BUTTON_1);
}
void SlotView::bind(