Add Pick Block support for controllers (D-Pad Down) across all platforms

This commit is contained in:
Alezito2008 2026-03-08 16:18:51 -03:00
parent 8cbc7606ac
commit 2cdedcff3f
6 changed files with 17 additions and 0 deletions

View file

@ -1454,6 +1454,7 @@ void Minecraft::run_middle()
if(InputManager.ButtonPressed(i, ACTION_MENU_GTC_PAUSE)) localplayers[i]->ullButtonsPressed|=1LL<<ACTION_MENU_GTC_PAUSE;
#endif
if(InputManager.ButtonPressed(i, MINECRAFT_ACTION_DROP)) localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_DROP;
if(InputManager.ButtonPressed(i, MINECRAFT_ACTION_PICK_ITEM)) localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_PICK_ITEM;
// 4J-PB - If we're flying, the sneak needs to be held on to go down
if(localplayers[i]->abilities.flying)