Package com.ardor3d.input.jogl
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ardor3d.input.MouseWrapper
MouseWrapper.MouseIterator
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EnumSet
<MouseButton> protected final EnumMap
<MouseButton, Integer> protected boolean
protected MouseWrapper.MouseIterator
protected int
protected int
protected final EnumMap
<MouseButton, Long> protected MouseState
protected final MouseManager
protected final com.jogamp.newt.opengl.GLWindow
protected boolean
Fields inherited from interface com.ardor3d.input.MouseWrapper
_upcomingEvents
-
Constructor Summary
ConstructorDescriptionJoglNewtMouseWrapper
(NewtWindowContainer newtWindowContainer, MouseManager manager) -
Method Summary
Modifier and TypeMethodDescriptionReturns a peeking iterator that allows the client to loop through all mouse events that have not yet been handled.void
init()
Allows the mouse wrapper implementation to initialize itself.boolean
boolean
void
mouseClicked
(com.jogamp.newt.event.MouseEvent me) void
mouseDragged
(com.jogamp.newt.event.MouseEvent me) void
mouseEntered
(com.jogamp.newt.event.MouseEvent me) void
mouseExited
(com.jogamp.newt.event.MouseEvent me) void
mouseMoved
(com.jogamp.newt.event.MouseEvent me) void
mousePressed
(com.jogamp.newt.event.MouseEvent me) void
mouseReleased
(com.jogamp.newt.event.MouseEvent me) void
mouseWheelMoved
(com.jogamp.newt.event.MouseEvent me) void
setConsumeEvents
(boolean consumeEvents) void
setSkipAutoRepeatEvents
(boolean skipAutoRepeatEvents)
-
Field Details
-
_currentIterator
-
_lastState
-
_newtWindow
protected final com.jogamp.newt.opengl.GLWindow _newtWindow -
_manager
-
_consumeEvents
protected boolean _consumeEvents -
_skipAutoRepeatEvents
protected boolean _skipAutoRepeatEvents -
_clicks
-
_lastClickTime
-
_clickArmed
-
_ignoreX
protected int _ignoreX -
_ignoreY
protected int _ignoreY
-
-
Constructor Details
-
JoglNewtMouseWrapper
-
-
Method Details
-
init
public void init()Description copied from interface:MouseWrapper
Allows the mouse wrapper implementation to initialize itself.- Specified by:
init
in interfaceMouseWrapper
-
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 interfaceMouseWrapper
- 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 interfacecom.jogamp.newt.event.MouseListener
-
mouseReleased
public void mouseReleased(com.jogamp.newt.event.MouseEvent me) - Specified by:
mouseReleased
in interfacecom.jogamp.newt.event.MouseListener
-
mouseDragged
public void mouseDragged(com.jogamp.newt.event.MouseEvent me) - Specified by:
mouseDragged
in interfacecom.jogamp.newt.event.MouseListener
-
mouseMoved
public void mouseMoved(com.jogamp.newt.event.MouseEvent me) - Specified by:
mouseMoved
in interfacecom.jogamp.newt.event.MouseListener
-
mouseWheelMoved
public void mouseWheelMoved(com.jogamp.newt.event.MouseEvent me) - Specified by:
mouseWheelMoved
in interfacecom.jogamp.newt.event.MouseListener
-
mouseClicked
public void mouseClicked(com.jogamp.newt.event.MouseEvent me) - Specified by:
mouseClicked
in interfacecom.jogamp.newt.event.MouseListener
-
mouseEntered
public void mouseEntered(com.jogamp.newt.event.MouseEvent me) - Specified by:
mouseEntered
in interfacecom.jogamp.newt.event.MouseListener
-
mouseExited
public void mouseExited(com.jogamp.newt.event.MouseEvent me) - Specified by:
mouseExited
in interfacecom.jogamp.newt.event.MouseListener
-
isConsumeEvents
public boolean isConsumeEvents() -
setConsumeEvents
public void setConsumeEvents(boolean consumeEvents) -
isSkipAutoRepeatEvents
public boolean isSkipAutoRepeatEvents() -
setSkipAutoRepeatEvents
public void setSkipAutoRepeatEvents(boolean skipAutoRepeatEvents)
-