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