Package engine.tools

Class Mouse

java.lang.Object
engine.tools.Mouse

public class Mouse extends Object
the Mouse class is designed to get the mouse position in the screen Detects when the mouse buttons create input events and pass them on. Uses GLFW callbacks.
  • Constructor Details

    • Mouse

      public Mouse()
  • Method Details

    • createCallbacks

      public static void createCallbacks()
    • update

      public static void update()
      Reset the distance moved by the mouse.
    • getX

      public static float getX()
    • getY

      public static float getY()
    • getDX

      public static float getDX()
    • getDY

      public static float getDY()
    • isLeftButtonPressed

      public static boolean isLeftButtonPressed()
    • isRightButtonPressed

      public static boolean isRightButtonPressed()
    • isLeftButtonClicked

      public static boolean isLeftButtonClicked()
    • getDWheel

      public static float getDWheel()