mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
refactor input.h and related
This commit is contained in:
parent
9c31c6c8b7
commit
8bb1045e34
12 changed files with 236 additions and 254 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue