Ejemplo n.º 1
0
        public TuioServer(ITuioInputProvider tuioInputProvider)
        {
            _tuioInputProvider              = tuioInputProvider;
            _tuioInputProvider.OnTuioInput += Send;

            _tuioTransmitter = new TUIOTransmitter(defaultIPAddress, defaultPort);
            _tuioTransmitter.Connect();
        }
Ejemplo n.º 2
0
    override protected void Initialise()
    {
        UpdateScreenDimensions();

        serverInfo = string.Format("发送: {0}:{1}\n接收: {2}", Settings.ipAddress, Settings.port, Settings.listenPort);

        tuioTransmitter = new TUIOTransmitter(Settings.ipAddress, Settings.port);
        tuioTransmitter.Connect();

        if (Settings.listen)
        {
            tuioInput.TuioPort = Settings.listenPort;
            tuioInput.enabled  = true;
        }
    }
Ejemplo n.º 3
0
    override protected void Initialise()
    {
        UpdateScreenDimensions();

        serverInfo = string.Format("Sending: {0}:{1}\nReceiving: {2}", Settings.ipAddress, Settings.port, Settings.listenPort);

        if (Settings.useMouseOnly)
        {
            standardInput.Windows8Touch  = StandardInput.Windows8TouchAPIType.None;
            standardInput.Windows7Touch  = StandardInput.Windows7TouchAPIType.None;
            standardInput.WebPlayerTouch = false;
            standardInput.WebGLTouch     = false;
        }

        tuioTransmitter = new TUIOTransmitter(Settings.ipAddress, Settings.port);
        tuioTransmitter.Connect();

        if (Settings.listen)
        {
            tuioInput.TuioPort = Settings.listenPort;
            tuioInput.enabled  = true;
        }
    }