Class JoglNewtMouseWrapper

java.lang.Object
com.ardor3d.input.jogl.JoglNewtMouseWrapper
All Implemented Interfaces:
MouseWrapper, com.jogamp.newt.event.MouseListener, com.jogamp.newt.event.NEWTEventListener, EventListener

public class JoglNewtMouseWrapper extends Object implements MouseWrapper, com.jogamp.newt.event.MouseListener
  • Field Details

    • _currentIterator

      protected MouseWrapper.MouseIterator _currentIterator
    • _lastState

      protected MouseState _lastState
    • _newtWindow

      protected final com.jogamp.newt.opengl.GLWindow _newtWindow
    • _manager

      protected final MouseManager _manager
    • _consumeEvents

      protected boolean _consumeEvents
    • _skipAutoRepeatEvents

      protected boolean _skipAutoRepeatEvents
    • _clicks

      protected final EnumMap<MouseButton,Integer> _clicks
    • _lastClickTime

      protected final EnumMap<MouseButton,Long> _lastClickTime
    • _clickArmed

      protected final EnumSet<MouseButton> _clickArmed
    • _ignoreX

      protected int _ignoreX
    • _ignoreY

      protected int _ignoreY
  • Constructor Details

  • Method Details

    • init

      public void init()
      Description copied from interface: MouseWrapper
      Allows the mouse wrapper implementation to initialize itself.
      Specified by:
      init in interface MouseWrapper
    • getEvents

      public PeekingIterator<MouseState> getEvents()
      Description copied from interface: MouseWrapper
      Returns a peeking iterator that allows the client to loop through all mouse events that have not yet been handled.
      Specified by:
      getEvents in interface MouseWrapper
      Returns:
      an iterator that allows the client to check which events have still not been handled
    • mousePressed

      public void mousePressed(com.jogamp.newt.event.MouseEvent me)
      Specified by:
      mousePressed in interface com.jogamp.newt.event.MouseListener
    • mouseReleased

      public void mouseReleased(com.jogamp.newt.event.MouseEvent me)
      Specified by:
      mouseReleased in interface com.jogamp.newt.event.MouseListener
    • mouseDragged

      public void mouseDragged(com.jogamp.newt.event.MouseEvent me)
      Specified by:
      mouseDragged in interface com.jogamp.newt.event.MouseListener
    • mouseMoved

      public void mouseMoved(com.jogamp.newt.event.MouseEvent me)
      Specified by:
      mouseMoved in interface com.jogamp.newt.event.MouseListener
    • mouseWheelMoved

      public void mouseWheelMoved(com.jogamp.newt.event.MouseEvent me)
      Specified by:
      mouseWheelMoved in interface com.jogamp.newt.event.MouseListener
    • mouseClicked

      public void mouseClicked(com.jogamp.newt.event.MouseEvent me)
      Specified by:
      mouseClicked in interface com.jogamp.newt.event.MouseListener
    • mouseEntered

      public void mouseEntered(com.jogamp.newt.event.MouseEvent me)
      Specified by:
      mouseEntered in interface com.jogamp.newt.event.MouseListener
    • mouseExited

      public void mouseExited(com.jogamp.newt.event.MouseEvent me)
      Specified by:
      mouseExited in interface com.jogamp.newt.event.MouseListener
    • isConsumeEvents

      public boolean isConsumeEvents()
    • setConsumeEvents

      public void setConsumeEvents(boolean consumeEvents)
    • isSkipAutoRepeatEvents

      public boolean isSkipAutoRepeatEvents()
    • setSkipAutoRepeatEvents

      public void setSkipAutoRepeatEvents(boolean skipAutoRepeatEvents)