Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }