mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-21 20:03:50 +00:00
Input: Add Ctrl+Q shortcut to drop entire item stack
This commit is contained in:
parent
28614b922f
commit
ec23aa2b98
4 changed files with 11 additions and 4 deletions
|
|
@ -3797,7 +3797,8 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures)
|
|||
|
||||
if((player->ullButtonsPressed&(1LL<<MINECRAFT_ACTION_DROP)) && gameMode->isInputAllowed(MINECRAFT_ACTION_DROP))
|
||||
{
|
||||
player->drop();
|
||||
bool ctrlHeld = g_KBMInput.IsKBMActive() && g_KBMInput.IsKeyDown(KeyboardMouseInput::KEY_CONTROL);
|
||||
player->drop(ctrlHeld);
|
||||
}
|
||||
|
||||
uint64_t ullButtonsPressed=player->ullButtonsPressed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue