Class InputSystemJme

java.lang.Object
com.jme3.niftygui.InputSystemJme
All Implemented Interfaces:
com.jme3.input.RawInputListener, de.lessvoid.nifty.spi.input.InputSystem

public class InputSystemJme extends Object implements de.lessvoid.nifty.spi.input.InputSystem, com.jme3.input.RawInputListener
  • Constructor Details

    • InputSystemJme

      public InputSystemJme(com.jme3.input.InputManager inputManager)
  • Method Details

    • setResourceLoader

      public void setResourceLoader(de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader niftyResourceLoader)
      Specified by:
      setResourceLoader in interface de.lessvoid.nifty.spi.input.InputSystem
    • setNifty

      public void setNifty(de.lessvoid.nifty.Nifty nifty)
      Must be set in order for nifty events to be forwarded correctly.
      Parameters:
      nifty - the Nifty instance to use
    • reset

      public void reset()
      Reset internal state of the input system. Must be called when the display is reinitialized or when the internal state becomes invalid.
    • setHeight

      public void setHeight(int height)
      Parameters:
      height - The height of the viewport. Used to convert bottom-left origin to upper-left origin.
    • setMousePosition

      public void setMousePosition(int x, int y)
      Specified by:
      setMousePosition in interface de.lessvoid.nifty.spi.input.InputSystem
    • 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
    • onMouseMotionEvent

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

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

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

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

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

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

      public void forwardEvents(de.lessvoid.nifty.NiftyInputConsumer nic)
      Specified by:
      forwardEvents in interface de.lessvoid.nifty.spi.input.InputSystem