Class KeyboardHandlerMixin

java.lang.Object
de.luckymcdev.foundryengine.mixin.input.KeyboardHandlerMixin
All Implemented Interfaces:
EngineInterface<net.minecraft.client.KeyboardHandler>, EngineKeyboardHandler

public class KeyboardHandlerMixin extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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$keyPress in interface EngineKeyboardHandler
    • 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$charTyped in interface EngineKeyboardHandler