private void SetInputExternal(ISServerSocket client) { if (!CurrentInputClient.IsLocalhost && CurrentInputClient.IsConnected) { CurrentInputClient.NotifyActiveClient(false); } inputMan.SetInputBlocked(true); CurrentInputClient = client; client.NotifyActiveClient(true); InputClientSwitched?.Invoke(this, client); }
private void SetInputLocal() { if (!CurrentInputClient.IsLocalhost && CurrentInputClient.IsConnected) { CurrentInputClient.NotifyActiveClient(false); } inputMan.SetInputBlocked(false); CurrentInputClient = ISServerSocket.Localhost; //TODO - reset key states? InputClientSwitched?.Invoke(this, ISServerSocket.Localhost); }