Interface InputDevice

  • All Known Implementing Classes:
    AWTInput, GDXInput, TeaInputDevice

    public interface InputDevice
    Used to poll the status of the platform's input devices. Depending on the device, this may consist of a mouse, keyboard, or touch screen. Attempting to access an input device that is not available will result in a UnsupportedOperationException.
    • Method Detail

      • getPointer

        Point getPointer()
      • isPointerPressed

        boolean isPointerPressed()
      • isPointerReleased

        boolean isPointerReleased()
      • isKeyboardAvailable

        boolean isKeyboardAvailable()
      • isKeyPressed

        boolean isKeyPressed​(KeyCode keyCode)
      • isKeyReleased

        boolean isKeyReleased​(KeyCode keyCode)