Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Minecraft.Client/Minecraft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down
1 change: 1 addition & 0 deletions Minecraft.Client/Windows64/KeyboardMouseInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class KeyboardMouseInput
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;
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading