mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
refactor: replace references to Events with Input
This commit is contained in:
parent
4c48afbb90
commit
b202d1455b
15 changed files with 160 additions and 116 deletions
|
|
@ -281,7 +281,8 @@ bool SlotView::isHighlighted() const {
|
|||
}
|
||||
|
||||
void SlotView::performLeftClick(ItemStack& stack, ItemStack& grabbed) {
|
||||
if (layout.taking && Events::pressed(keycode::LEFT_SHIFT)) {
|
||||
const auto& input = gui.getInput();
|
||||
if (layout.taking && input.pressed(keycode::LEFT_SHIFT)) {
|
||||
if (layout.shareFunc) {
|
||||
layout.shareFunc(layout.index, stack);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue