mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Add keyboard support for debug fly toggle (Up Arrow)
This commit is contained in:
parent
43d520f692
commit
f83233e882
|
|
@ -1549,6 +1549,11 @@ void Minecraft::run_middle()
|
||||||
localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_RENDER_DEBUG;
|
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
|
// In flying mode, Shift held = sneak/descend
|
||||||
if(g_KBMInput.IsKBMActive() && g_KBMInput.IsKeyDown(KeyboardMouseInput::KEY_SNEAK))
|
if(g_KBMInput.IsKBMActive() && g_KBMInput.IsKeyDown(KeyboardMouseInput::KEY_SNEAK))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ public:
|
||||||
static const int KEY_DEBUG_CONSOLE = VK_F6;
|
static const int KEY_DEBUG_CONSOLE = VK_F6;
|
||||||
static const int KEY_HOST_SETTINGS = VK_F8;
|
static const int KEY_HOST_SETTINGS = VK_F8;
|
||||||
static const int KEY_FULLSCREEN = VK_F11;
|
static const int KEY_FULLSCREEN = VK_F11;
|
||||||
|
static const int KEY_FLY_TOGGLE = VK_UP;
|
||||||
|
|
||||||
// todo: implement and shi
|
// todo: implement and shi
|
||||||
static const int KEY_SCREENSHOT = VK_F2;
|
static const int KEY_SCREENSHOT = VK_F2;
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ If you're looking for Dedicated Server software, download its [Nightly Build her
|
||||||
- **Toggle Debug Info**: `F3`
|
- **Toggle Debug Info**: `F3`
|
||||||
- **Open Debug Overlay**: `F4`
|
- **Open Debug Overlay**: `F4`
|
||||||
- **Toggle Debug Console**: `F6`
|
- **Toggle Debug Console**: `F6`
|
||||||
|
- **Toggle Debug Fly**: `Up Arrow`
|
||||||
|
|
||||||
|
|
||||||
## Client Launch Arguments
|
## Client Launch Arguments
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue