Example #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);
        }
Example #2
0
 void OnConnected(object joystick, JoystickConnectionEventArgs e)
 {
     e.Connection.SendMessage(CamelCaseSerializer.Serialize(GetOpenEvent(e.Devices)));
 }
Example #3
0
 protected virtual void OnConnected(JoystickConnectionEventArgs e)
 {
     Connected?.Invoke(this, e);
 }