mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
change shift to ctrl
This commit is contained in:
parent
871326555d
commit
d328b4deb5
1 changed files with 1 additions and 2 deletions
|
|
@ -369,7 +369,6 @@ void SlotView::performLeftClick(ItemStack& stack, ItemStack& grabbed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << "perform left click" << std::endl;
|
|
||||||
if (!layout.itemSource && stack.accepts(grabbed) && layout.placing) {
|
if (!layout.itemSource && stack.accepts(grabbed) && layout.placing) {
|
||||||
action = InteractionAction::PUT;
|
action = InteractionAction::PUT;
|
||||||
stack.move(grabbed, *content->getIndices());
|
stack.move(grabbed, *content->getIndices());
|
||||||
|
|
@ -377,7 +376,7 @@ void SlotView::performLeftClick(ItemStack& stack, ItemStack& grabbed) {
|
||||||
if (layout.itemSource) {
|
if (layout.itemSource) {
|
||||||
if (grabbed.isEmpty()) {
|
if (grabbed.isEmpty()) {
|
||||||
action = InteractionAction::TAKE;
|
action = InteractionAction::TAKE;
|
||||||
if (input.pressed(Keycode::LEFT_SHIFT)) {
|
if (input.pressed(Keycode::LEFT_CONTROL)) {
|
||||||
stack.maximizeCount(*content->getIndices());
|
stack.maximizeCount(*content->getIndices());
|
||||||
std::cout << "maximized grabbed item" << std::endl;
|
std::cout << "maximized grabbed item" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue