Class TeaInputDevice

    • Constructor Detail

      • TeaInputDevice

        public TeaInputDevice​(Canvas canvas,
                              nl.colorize.util.Platform.PlatformFamily platform)
    • Method Detail

      • update

        public void update​(float deltaTime)
        Description copied from interface: Updatable
        Updates this object for the current frame.
        Specified by:
        update in interface Updatable
        Parameters:
        deltaTime - Elapsed time since the last frame, in seconds.
      • 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