Interface MouseInput

All Superinterfaces:
Input
All Known Implementing Classes:
AwtMouseInput, AWTMouseInput, DummyMouseInput, GlfwMouseInput, GlfwMouseInputVR, LwjglMouseInput

public interface MouseInput extends Input
A specific API for interfacing with the mouse.
  • Field Details

  • Method Details

    • setCursorVisible

      void setCursorVisible(boolean visible)
      Set whether the mouse cursor should be visible or not.
      Parameters:
      visible - Whether the mouse cursor should be visible or not.
    • getButtonCount

      int getButtonCount()
      Returns the number of buttons the mouse has. Typically 3 for most mice.
      Returns:
      the number of buttons the mouse has.
    • setNativeCursor

      void setNativeCursor(JmeCursor cursor)
      Sets the cursor to use.
      Parameters:
      cursor - The cursor to use.