your current location:首页 > news>Input method conflict repair

Input method conflict repair

2024-12-15 01:12:06|Myriagame |source:minecraft skins

This module is a high version module of the conflict of the Chinese input method (1.7.2-1.12.2) in the game.

Function

Fix the phenomenon of conflict between Minecraft in normal games and Chinese, Japanese, and Korean input methods.

Let you play the game normally when you drive the input method, control the game, and will not conflict.

After 1.20, the module has supported Fabric. For other support versions, please conflict in the input method.

principle

Minecraft input processing mechanism:

In the Minecraft game, a keyboard input will process the game button response and text input response;

The game button response processing has nothing to do with us, so ignores;

The text input response will be handled by the GUI screen currently displayed by MINECRAFT. The screen generally changes a text box to process the input character;

If there is no screen, or the screen judges that the text box should not be called, or the text box refuses to receive this character, then the text will not be "input" to anywhere;

Regardless of whether the text will be input, the text input response process will be executed;

We can hardly determine whether the game will accept the text in advance.

IMBLOCKER input state recognition:

Collect all the text box objects;

Use ASM to modify the constructor of the text box to implement this;

If there is a text box allows input, the game is considered to accept the input text.

Exception:

Some GUI screens (such as books and pens and signs) directly handle the input characters instead of transferring to the text box to process;

We cannot capture these inputs, so we put these screens (Screen) into the white list.

question:

There may be fake positive, that is, the text box considers you can accept the input, but the game will not pass the input to this text box;

There is no available method for disable/enable input method in non -Windows environment;

Welcome to make suggestions or feedback.

Minecraft images

Minecraft images

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.