Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_vxJbizDU.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
LShiftFix - 墨喵 Minecraft 资源

LShiftFix

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/lshiftfix
资源信息

Minecraft 版本: 1.8.9

平台: forge

标签: optimization

资源介绍

Problem
When a Chinese / Japanese / Korean IME is active in Minecraft 1.8.9, the player cannot jump while holding Shift (sneak) and pressing Space. The jump input is swallowed by the OS input method.

Root cause: Almost every IME registers Shift+Space as a full-width/half-width toggle hotkey. Windows routes WM_KEYDOWN through ImmTranslateMessage before dispatching to the app. The IME consumes the combo there, so Minecraft's Keyboard.next() event queue never sees the key press — keyBindJump.isKeyDown() stays false forever.

Fix
LShiftFix injects at the tail of EntityPlayerSP.updateMovementInput():

Reads the player's bound jump key (default Space, supports rebinding)
Calls Keyboard.isKeyDown(keyCode) to directly poll the hardware state
If physically pressed but movementInput.jump is still false, force it to true
LWJGL's keyDownBuffer is populated by WindowProc at a layer lower than WM_KEYDOWN, so IME interception of the event queue doesn't affect it. The fix is IME-agnostic — works for Sogou, Microsoft Pinyin, QQ Pinyin, Google Input, Japanese IME, Korean IME, etc.

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Actions & Extras

价格:0 墨喵币
下载量:0

查看详情
Just Crowns

价格:0 墨喵币
下载量:0

查看详情
Multiversal Vanilla

价格:0 墨喵币
下载量:0

查看详情
Mod List Scroll Fix

价格:0 墨喵币
下载量:0

查看详情