/** * Instantiate an InputDevice of the given class name. * * @return the InputDevice, or null if error */ InputDevice createInputDevice() { j3dInputDevice = (InputDevice)createTargetObject() ; return j3dInputDevice ; } }
while (i.hasNext()) { cd = (ConfigDevice)i.next() ; cd.targetObject = cd.createInputDevice() ; while (i.hasNext()) ((ConfigDevice)i.next()).processProperties() ; if (! cd.j3dInputDevice.initialize()) throw new RuntimeException (cd.errorMessage(cd.creatingCommand, "could not initialize device \"" + cd.instanceName + "\"")) ;