Example #1
0
 void assignInputDevice(int deviceOrigin) {
   if (devices == null) {
     vlog.eidebug("Attempted to assign GII device ID " + deviceOrigin + " to non-existent device");
     return;
   }
   for (Iterator<ExtInputDevice> i = devices.iterator(); i.hasNext(); ) {
     ExtInputDevice dev = (ExtInputDevice) i.next();
     if (dev.remoteID == 0) {
       dev.remoteID = deviceOrigin;
       vlog.info("Successfully created device " + deviceOrigin + " (" + dev.name + ")");
       break;
     }
   }
 }
Example #2
0
 void addInputDevice(ExtInputDevice dev) {
   if (devices == null) devices = new ArrayList<ExtInputDevice>();
   devices.add(dev);
   dev.print();
   cc.giiDeviceCreate(dev);
 }