Add keyboard support for debug fly toggle (Up Arrow)

This commit is contained in:
Alezito2008 2026-03-16 22:03:47 -03:00
parent 43d520f692
commit f83233e882
3 changed files with 7 additions and 0 deletions

View file

@ -1549,6 +1549,11 @@ void Minecraft::run_middle()
localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_RENDER_DEBUG;
}
if (g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_FLY_TOGGLE) && app.DebugSettingsOn() && app.GetUseDPadForDebug())
{
localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_FLY_TOGGLE;
}
// In flying mode, Shift held = sneak/descend
if(g_KBMInput.IsKBMActive() && g_KBMInput.IsKeyDown(KeyboardMouseInput::KEY_SNEAK))
{

View file

@ -36,6 +36,7 @@ public:
static const int KEY_DEBUG_CONSOLE = VK_F6;
static const int KEY_HOST_SETTINGS = VK_F8;
static const int KEY_FULLSCREEN = VK_F11;
static const int KEY_FLY_TOGGLE = VK_UP;
// todo: implement and shi
static const int KEY_SCREENSHOT = VK_F2;

View file

@ -61,6 +61,7 @@ If you're looking for Dedicated Server software, download its [Nightly Build her
- **Toggle Debug Info**: `F3`
- **Open Debug Overlay**: `F4`
- **Toggle Debug Console**: `F6`
- **Toggle Debug Fly**: `Up Arrow`
## Client Launch Arguments