internal void IcarosControllerStatusChange(JavaBridgeStatus newStatus, string newStatusInfo) { if (newStatus.Equals(JavaBridgeStatus.PERIPHERAL_DISCONNECTED)) { IcarosController con = null; foreach (IInputDevice device in registeredInputDevices) { if (device.GetType() == typeof(IcarosController) && device.IsInUse()) { con = device as IcarosController; } } if (con != null) { con.used = false; registeredInputDevices.Remove(con); DeviceLost(con); } } if (newStatus.Equals(JavaBridgeStatus.PERIPHERAL_CONNECTED)) { DeviceUsed(deviceWaitingForJBM); } }
internal void UpdateStatus(JavaBridgeStatus newStatus, string newStatusInfo) { status = newStatus; statusInfo = newStatusInfo; OnStatusChange(newStatus, newStatusInfo); }