i can feel it in my bones ts will not work

This commit is contained in:
2026-08-26 16:14:02 -05:00
parent 6cad9c5898
commit e37409d466
4 changed files with 646 additions and 0 deletions
@@ -20,6 +20,7 @@
#include "..\..\Minecraft.World\net.minecraft.world.level.tile.h"
#include "..\ClientConnection.h"
#include "KBMInput.h"
#include "..\User.h"
#include "..\..\Minecraft.World\Socket.h"
#include "..\..\Minecraft.World\ThreadName.h"
@@ -842,6 +843,25 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
{
InputManager.Tick();
}
if (InputManager.IsPadConnected(0))
{
const bool controllerUsed = InputManager.ButtonPressed(0) ||
InputManager.GetJoypadStick_LX(0, false) != 0.0f ||
InputManager.GetJoypadStick_LY(0, false) != 0.0f ||
InputManager.GetJoypadStick_RX(0, false) != 0.0f ||
InputManager.GetJoypadStick_RY(0, false) != 0.0f;
if (controllerUsed) {
g_KBMInput.SetKBMActive(false);
//if (ui.FindScene(eUIScene_BookMenu) != nullptr) ui.FindScene(eUIScene_BookMenu)->KBMUpdate(false);
}
else if (g_KBMInput.HasAnyInput()) {
g_KBMInput.SetKBMActive(true);
//if (ui.FindScene(eUIScene_BookMenu) != nullptr) ui.FindScene(eUIScene_BookMenu)->KBMUpdate(true);
}
}
PIXEndNamedEvent();
/*PIXBeginNamedEvent(0,"Profile manager tick");
ProfileManager.Tick();