public class MouseManager extends Object implements org.j3d.device.input.DeviceManager
| Constructor and Description |
|---|
MouseManager(GraphicsOutputDevice surface)
Create a basic manager for mice.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDeviceListener(org.j3d.device.input.DeviceListener l)
Add a listener for devices additions and removals.
|
org.j3d.device.input.InputDevice[] |
getDevices()
Get the device discovered by this manager.
|
int |
getNumDevices()
Get the number of devices discovered.
|
void |
removeDeviceListener(org.j3d.device.input.DeviceListener l)
Remove a listener for device additions and removals.
|
void |
setErrorReporter(org.j3d.util.ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated
by the loading of script code can be reported in a nice, pretty fashion.
|
public MouseManager(GraphicsOutputDevice surface)
public void setErrorReporter(org.j3d.util.ErrorReporter reporter)
setErrorReporter in interface org.j3d.device.input.DeviceManagerreporter - The instance to use or nullpublic int getNumDevices()
getNumDevices in interface org.j3d.device.input.DeviceManagerpublic org.j3d.device.input.InputDevice[] getDevices()
getDevices in interface org.j3d.device.input.DeviceManagerpublic void addDeviceListener(org.j3d.device.input.DeviceListener l)
addDeviceListener in interface org.j3d.device.input.DeviceManagerl - The listener. Nulls and duplicates will be ignored.public void removeDeviceListener(org.j3d.device.input.DeviceListener l)
removeDeviceListener in interface org.j3d.device.input.DeviceManagerl - The listener. Nulls and not found listeners will be ignored.
Copyright © 2001 - 2015 j3d.org