Class GDXInput

  • All Implemented Interfaces:
    InputDevice

    public class GDXInput
    extends java.lang.Object
    implements InputDevice
    Access to libGDX's user input state.
    • Constructor Detail

      • GDXInput

        protected GDXInput()
    • Method Detail

      • update

        public void update()
      • requestTextInput

        public java.lang.String requestTextInput​(java.lang.String label,
                                                 java.lang.String initialValue)
        Description copied from interface: InputDevice
        Shows a dialog window requesting the user to enter text. This method exists only because text fields, unlike other input elements such as buttons, cannot be emulated by the renderer without losing common functionality such as copy/paste. Text input must therefore be delegated to the platform so that a native text field can be used.
        Specified by:
        requestTextInput in interface InputDevice