Maybe will show notification on controller changed

This commit is contained in:
Kamil Trzciński 2022-11-26 14:27:21 +01:00
parent 17a71dc110
commit b977003efa
6 changed files with 36 additions and 10 deletions

View file

@ -1,6 +1,5 @@
using CommonHelpers;
using ExternalHelpers;
using SteamController.Helpers;
using SteamController.Profiles;
using System.ComponentModel;
using System.Diagnostics;
@ -118,6 +117,18 @@ namespace SteamController
contextStateUpdate.Enabled = true;
contextStateUpdate.Tick += ContextStateUpdate_Tick;
context.ProfileChanged += (profile) =>
{
#if false
notifyIcon.ShowBalloonTip(
1000,
TitleWithVersion,
String.Format("Selected profile: {0}", profile.Name),
ToolTipIcon.Info
);
#endif
};
stopwatch.Start();
contextThread = new Thread(ContextState_Update);