369

Using input devices
InputDevice interface methods

  • Implement the InputDevice interface for a new input device
  • Supply methods to initialize the device, and get data
  • The principal result is one or more new Sensors that abstract the device for generic use elsewhere in Java 3D
  • Method
    void initialize( )
    void close( )
    void processStreamInput( )
    void pollAndProcessInput( )
    void setProcessingMode( int mode )
    int getSensorCount( )
    Sensor getSensor( int sensorIndex )