Package com.jme3.input
Class AWTMouseInput
java.lang.Object
com.jme3.input.AWTInput
com.jme3.input.AWTMouseInput
- All Implemented Interfaces:
- Input,- MouseInput,- MouseListener,- MouseMotionListener,- MouseWheelListener,- EventListener
public class AWTMouseInput
extends AWTInput
implements MouseInput, MouseListener, MouseMotionListener, MouseWheelListener
The implementation of the 
MouseInput dedicated to AWT component.
 This class is based on the JavaFX original code provided by Alexander Brui (see JME3-FX)
- 
Field SummaryFields inherited from class com.jme3.input.AWTInputapplication, component, context, EXECUTOR, initialized, listenerFields inherited from interface com.jme3.input.MouseInputAXIS_WHEEL, AXIS_X, AXIS_Y, BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidintReturns the number of buttons the mouse has.voidvoidvoidvoidvoidvoidvoidvoidvoidsetCursorVisible(boolean visible) Set whether the mouse cursor should be visible or not.voidsetNativeCursor(JmeCursor cursor) Sets the cursor to use.voidunbind()protected voidMethods inherited from class com.jme3.input.AWTInputdestroy, getInputTimeNanos, initialize, initializeImpl, isInitialized, setInputListener, updateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jme3.input.Inputdestroy, getInputTimeNanos, initialize, isInitialized, setInputListener, update
- 
Constructor Details- 
AWTMouseInput
 
- 
- 
Method Details- 
bind
- 
unbindpublic void unbind()
- 
updateImplprotected void updateImpl()- Overrides:
- updateImplin class- AWTInput
 
- 
setCursorVisiblepublic void setCursorVisible(boolean visible) Description copied from interface:MouseInputSet whether the mouse cursor should be visible or not.- Specified by:
- setCursorVisiblein interface- MouseInput
- Parameters:
- visible- Whether the mouse cursor should be visible or not.
 
- 
getButtonCountpublic int getButtonCount()Description copied from interface:MouseInputReturns the number of buttons the mouse has. Typically 3 for most mice.- Specified by:
- getButtonCountin interface- MouseInput
- Returns:
- the number of buttons the mouse has.
 
- 
setNativeCursorDescription copied from interface:MouseInputSets the cursor to use.- Specified by:
- setNativeCursorin interface- MouseInput
- Parameters:
- cursor- The cursor to use.
 
- 
mouseDragged- Specified by:
- mouseDraggedin interface- MouseMotionListener
 
- 
mouseMoved- Specified by:
- mouseMovedin interface- MouseMotionListener
 
- 
mouseClicked- Specified by:
- mouseClickedin interface- MouseListener
 
- 
mousePressed- Specified by:
- mousePressedin interface- MouseListener
 
- 
mouseReleased- Specified by:
- mouseReleasedin interface- MouseListener
 
- 
mouseEntered- Specified by:
- mouseEnteredin interface- MouseListener
 
- 
mouseExited- Specified by:
- mouseExitedin interface- MouseListener
 
- 
mouseWheelMoved- Specified by:
- mouseWheelMovedin interface- MouseWheelListener
 
 
-