private ConsoleScanner _xboxKonnect;
private void InitializeXboxKonnect()
{
_xboxKonnect = new ConsoleScanner
{
ScanFrequency = new TimeSpan(0, 0, 1),
DisconnectTimeout = new TimeSpan(0, 0, 3),
RemoveOnDisconnect = true,
}.StartScanning();
_xboxKonnect.AddConnectionEvent += delegate (object sender, OnAddConnectionEventArgs e)
{
var con = _xboxManager.OpenConsole(e.XboxConnection.IP.Address.ToString());
try
{
e.XboxConnection.CPUKey = CPUKey.Parse(con.GetCPUKey());
}
catch (Exception ex)
{
Trace.WriteLine(ex);
}
Debug.WriteLine("Connection found: " + e.XboxConnection);
};
}
-
Notifications
You must be signed in to change notification settings - Fork 1
Ste1io/XboxKonnect
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Lib for auto discovery of Xbox RGH consoles on the local network.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published