Xj3D VRML/X3D Code API

org.web3d.vrml.device
Interface DeviceManager

All Known Implementing Classes:
MouseManager, MouseManager

public interface DeviceManager

Managers a class of devices.

Version:
$Revision: 1.2 $
Author:
Alan Hudson

Method Summary
 void addDeviceListener(DeviceListener l)
          Add a listener for devices additions and removals.
 InputDevice[] getDevices()
          Get the device discovered by this manager.
 int getNumDevices()
          Get the number of devices discovered.
 void removeDeviceListener(DeviceListener l)
          Remove a listener for device additions and removals.
 

Method Detail

getNumDevices

public int getNumDevices()
Get the number of devices discovered.

Returns:
The number of devices.

getDevices

public InputDevice[] getDevices()
Get the device discovered by this manager. All devices discovered after this call will be reported to DeviceListeners.

Returns:
InputDevice[] An array of discovered devices.

addDeviceListener

public void addDeviceListener(DeviceListener l)
Add a listener for devices additions and removals.

Parameters:
l - The listener. Nulls and duplicates will be ignored.

removeDeviceListener

public void removeDeviceListener(DeviceListener l)
Remove a listener for device additions and removals.

Parameters:
l - The listener. Nulls and not found listeners will be ignored.

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium