public class MouseDevice extends Object implements org.j3d.device.input.TrackerDevice, MouseListener, MouseMotionListener, MouseWheelListener
FUNC_BUTTON_1, FUNC_BUTTON_2, FUNC_BUTTON_3, FUNC_BUTTON_4, FUNC_L1_BUTTON, FUNC_LEFT_HAT, FUNC_LEFT_STICK_X, FUNC_LEFT_STICK_Y, FUNC_LEFT_STICK_Z, FUNC_NAV_X, FUNC_NAV_Y, FUNC_NAV_Y_CENTERED, FUNC_NONE, FUNC_ORIENT_X, FUNC_ORIENT_Y, FUNC_R1_BUTTON, FUNC_RIGHT_STICK_X, FUNC_RIGHT_STICK_Y, FUNC_START_BUTTON, FUNC_THROTTLE, FUNC_VIEWPOINT_NEXT, FUNC_WHEEL_X| Constructor and Description |
|---|
MouseDevice(GraphicsOutputDevice surface,
String name)
Construct a new mouse device that interacts with the given surface,
and is named.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get the name of this device.
|
int |
getTrackerCount()
Get a count of the number of trackers this device has.
|
org.j3d.device.input.Tracker[] |
getTrackers()
Fetch the list of trackers generated by this output device
|
void |
mouseClicked(MouseEvent evt)
Process a mouse click event.
|
void |
mouseDragged(MouseEvent evt)
Process a mouse drag event
|
void |
mouseEntered(MouseEvent evt)
Process a mouse enter event.
|
void |
mouseExited(MouseEvent evt)
Process a mouse exited event.
|
void |
mouseMoved(MouseEvent evt)
Process a mouse movement event.
|
void |
mousePressed(MouseEvent evt)
Process a mouse press event.
|
void |
mouseReleased(MouseEvent evt)
Process a mouse release event.
|
void |
mouseWheelMoved(MouseWheelEvent mwe) |
public MouseDevice(GraphicsOutputDevice surface, String name)
surface - The surface to trackname - The device name stringpublic String getName()
getName in interface org.j3d.device.input.InputDevicepublic org.j3d.device.input.Tracker[] getTrackers()
getTrackers in interface org.j3d.device.input.TrackerDevicepublic int getTrackerCount()
getTrackerCount in interface org.j3d.device.input.TrackerDevicepublic void mousePressed(MouseEvent evt)
mousePressed in interface MouseListenerevt - The event that caused this method to be calledpublic void mouseReleased(MouseEvent evt)
mouseReleased in interface MouseListenerevt - The event that caused this method to be calledpublic void mouseClicked(MouseEvent evt)
mouseClicked in interface MouseListenerevt - The event that caused this method to be calledpublic void mouseEntered(MouseEvent evt)
mouseEntered in interface MouseListenerevt - The event that caused this method to be calledpublic void mouseExited(MouseEvent evt)
mouseExited in interface MouseListenerevt - The event that caused this method to be calledpublic void mouseDragged(MouseEvent evt)
mouseDragged in interface MouseMotionListenerevt - The event that caused this method to be calledpublic void mouseMoved(MouseEvent evt)
mouseMoved in interface MouseMotionListenerevt - The event that caused this method to be calledpublic void mouseWheelMoved(MouseWheelEvent mwe)
mouseWheelMoved in interface MouseWheelListener
Copyright © 2001 - 2015 j3d.org