Class CompatInput

java.lang.Object
net.ixdarklord.folios.internal.compat.CompatInput

public final class CompatInput extends Object
  • Method Details

    • modifiers

      public static int modifiers()
      The modifier keys held now.
    • click

      public static MouseButtonEvent click(double x, double y, int button)
      A press of a mouse button.
    • doubleClick

      public static boolean doubleClick()
      Whether the latest click was a double click.
    • at

      public static MouseButtonEvent at(double x, double y)
      The mouse at a point, with the button last pressed (for drags and releases).
    • release

      public static MouseButtonEvent release(double x, double y, int button)
    • key

      public static KeyEvent key(int key, int scancode, int modifiers)
    • lastInput

      public static InputWithModifiers lastInput()
      The click or key press being handled, for a button's press.