Class JmeFXInputListener

  • All Implemented Interfaces:
    com.jme3.input.RawInputListener

    public class JmeFXInputListener
    extends java.lang.Object
    implements com.jme3.input.RawInputListener
    Converts Jme Events to JavaFx Events
    • Method Detail

      • beginInput

        public void beginInput()
        Specified by:
        beginInput in interface com.jme3.input.RawInputListener
      • endInput

        public void endInput()
        Specified by:
        endInput in interface com.jme3.input.RawInputListener
      • onJoyAxisEvent

        public void onJoyAxisEvent​(com.jme3.input.event.JoyAxisEvent event)
        Specified by:
        onJoyAxisEvent in interface com.jme3.input.RawInputListener
      • onJoyButtonEvent

        public void onJoyButtonEvent​(com.jme3.input.event.JoyButtonEvent event)
        Specified by:
        onJoyButtonEvent in interface com.jme3.input.RawInputListener
      • onKeyEvent

        public void onKeyEvent​(com.jme3.input.event.KeyInputEvent event)
        Specified by:
        onKeyEvent in interface com.jme3.input.RawInputListener
      • onMouseButtonEvent

        public void onMouseButtonEvent​(com.jme3.input.event.MouseButtonEvent event)
        Specified by:
        onMouseButtonEvent in interface com.jme3.input.RawInputListener
      • onMouseMotionEvent

        public void onMouseMotionEvent​(com.jme3.input.event.MouseMotionEvent event)
        Specified by:
        onMouseMotionEvent in interface com.jme3.input.RawInputListener
      • onTouchEvent

        public void onTouchEvent​(com.jme3.input.event.TouchEvent event)
        Specified by:
        onTouchEvent in interface com.jme3.input.RawInputListener
      • setEverListeningRawInputListener

        public void setEverListeningRawInputListener​(com.jme3.input.RawInputListener rawInputListenerAdapter)
      • setMouseDNDListener

        public void setMouseDNDListener​(JmeFxDnDHandler dndHandler)
        set on drag start /nulled on end
        necessary so that the drag events can be generated appropriately
        Parameters:
        dndHandler - The drag and drop handler.
      • setAllowedToConsumeInputEventFunction

        public void setAllowedToConsumeInputEventFunction​(java.util.function.Function<com.jme3.input.event.InputEvent,​java.lang.Boolean> allowedToConsumeInputEventFunction)
        Set a function, which defines, if the input listener is allowed to consume certain input events
        Parameters:
        allowedToConsumeInputEventFunction - Function for testing if input events are allowed