neoLegacy/Minecraft.Client/Common
itsRevela a191df1f2e fix: controller cursor speed no longer scales with framerate
When framerate was uncapped (vsync off, high-end hardware), the controller cursor in the inventory and creative menus moved way too fast. Basically unusable unless you switched to the dpad. The cursor update was tied to how often the screen redraws, so the faster the game ran, the faster the cursor flew.

Now the cursor moves a smaller distance per frame at higher framerates, so the actual on-screen speed stays the same whether you're at 60 FPS or 600 FPS.

While fixing this I also found an old workaround that was rounding the cursor position to whole pixels every frame and nudging it by 1 pixel to keep it from getting stuck. That nudge was pointing the wrong way on the vertical axis, which made up/down movement feel broken once the per-frame distance got small. Removed the rounding and the nudge. The cursor can now hold a fractional position between frames, and the part of the code that actually draws the cursor still snaps it to whole pixels on screen.

Fixes #3
2026-04-10 21:38:43 -05:00
..
Audio fix: linux cross-compiling 2026-04-08 12:44:56 +03:00
Colours add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
DLC add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
DummyTexturePack/res Initial commit 2026-03-01 12:16:08 +08:00
GameRules add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Leaderboards add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Media removed backup arc file 2026-04-01 03:50:21 -05:00
Network add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
res Move project to CMake (#781) 2026-03-17 16:39:22 -05:00
Telemetry add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Trial add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Tutorial Revert "fix: tutorial world" 2026-04-08 13:00:44 -05:00
UI fix: controller cursor speed no longer scales with framerate 2026-04-10 21:38:43 -05:00
XUI add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
zlib Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
App_Defines.h feat: uncapped FPS when VSync off, fix graphics settings bitmask collision 2026-03-30 15:36:08 -05:00
App_enums.h Add VSync and fullscreen settings, fix swap chain resize and revert lighting changes 2026-03-19 11:04:49 -05:00
App_structs.h Save FOV value to settings (#670) 2026-03-06 16:38:16 -06:00
C4JMemoryPool.h Initial commit 2026-03-01 12:16:08 +08:00
C4JMemoryPoolAllocator.h add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Console_Awards_enum.h Initial commit 2026-03-01 12:16:08 +08:00
Console_Debug_enum.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Console_Utils.cpp add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
ConsoleGameMode.cpp add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
ConsoleGameMode.h add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Consoles_App.cpp add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Consoles_App.h add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Minecraft_Macros.h Initial commit 2026-03-01 12:16:08 +08:00
PostProcesser.h Fix split-screen UI wrong positioning on window resize (#989) 2026-03-08 22:16:58 -05:00
Potion_Macros.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
xuiscene_base.h Initial commit 2026-03-01 12:16:08 +08:00