Class KeyboardHandlerMixin
java.lang.Object
de.luckymcdev.foundryengine.mixin.input.KeyboardHandlerMixin
- All Implemented Interfaces:
EngineInterface<net.minecraft.client.KeyboardHandler>, EngineKeyboardHandler
Blocks game input while a docked window fully covers the game view
(see
ImGuiManager.shouldBlockInput()).
Input that ImGui itself captures is already cancelled by ImGuiMC's input mixins.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidengine$charTyped(long handle, net.minecraft.client.input.CharacterEvent event, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Cancels char-typed events while the dock blocks game input.voidengine$keyPress(long handle, int action, net.minecraft.client.input.KeyEvent event, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Cancels keyboard events when ImGui captures the keyboard, and handles editor/menu toggle hotkeys.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EngineInterface
engine$self
-
Constructor Details
-
KeyboardHandlerMixin
public KeyboardHandlerMixin()
-
-
Method Details
-
engine$keyPress
public void engine$keyPress(long handle, int action, net.minecraft.client.input.KeyEvent event, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Cancels keyboard events when ImGui captures the keyboard, and handles editor/menu toggle hotkeys.- Specified by:
engine$keyPressin interfaceEngineKeyboardHandler
-
engine$charTyped
public void engine$charTyped(long handle, net.minecraft.client.input.CharacterEvent event, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Cancels char-typed events while the dock blocks game input.- Specified by:
engine$charTypedin interfaceEngineKeyboardHandler
-