Exemplo n.º 1
0
        public void OnConnected(WebSocketConnection connection)
        {
            foreach (var device in connection._ownedDevices)
            {
                RequestDevice(device);
            }
            var args = new JoystickConnectionEventArgs();

            args.Connection = connection;
            args.Devices    = connection._ownedDevices;
            OnConnected(args);
        }
Exemplo n.º 2
0
 void OnConnected(object joystick, JoystickConnectionEventArgs e)
 {
     e.Connection.SendMessage(CamelCaseSerializer.Serialize(GetOpenEvent(e.Devices)));
 }
Exemplo n.º 3
0
 protected virtual void OnConnected(JoystickConnectionEventArgs e)
 {
     Connected?.Invoke(this, e);
 }