added an indicatot in statusbar on input device

This commit is contained in:
uberhalit 2019-04-09 22:28:14 +02:00
parent 1b51f98e41
commit eee41349b4

View file

@ -86,6 +86,14 @@ namespace SekiroFpsUnlockAndMore
LoadConfiguration(); LoadConfiguration();
if (_settingsService.ApplicationSettings.cameraAdjustNotify)
{
if (_settingsService.ApplicationSettings.peasantInput)
this.sbStatus.Text = "Controller Input";
else
this.sbStatus.Text = "Mouse Input";
}
IntPtr hWnd = new WindowInteropHelper(this).Handle; IntPtr hWnd = new WindowInteropHelper(this).Handle;
if (!RegisterHotKey(hWnd, 9009, MOD_CONTROL, VK_P)) if (!RegisterHotKey(hWnd, 9009, MOD_CONTROL, VK_P))
MessageBox.Show("Hotkey is already in use, it may not work.", "Sekiro FPS Unlocker and more", MessageBoxButton.OK, MessageBoxImage.Warning); MessageBox.Show("Hotkey is already in use, it may not work.", "Sekiro FPS Unlocker and more", MessageBoxButton.OK, MessageBoxImage.Warning);
@ -879,7 +887,11 @@ namespace SekiroFpsUnlockAndMore
result = MessageBox.Show("Are you using a mouse as input?\n\n" + result = MessageBox.Show("Are you using a mouse as input?\n\n" +
"To change your selection just delete the configuration file: SekiroFpsUnlockAndMore.xml", "Sekiro FPS Unlocker and more", MessageBoxButton.YesNo, MessageBoxImage.Question); "To change your selection just delete the configuration file: SekiroFpsUnlockAndMore.xml", "Sekiro FPS Unlocker and more", MessageBoxButton.YesNo, MessageBoxImage.Question);
if (result == MessageBoxResult.No) if (result == MessageBoxResult.No)
{
_settingsService.ApplicationSettings.peasantInput = true; _settingsService.ApplicationSettings.peasantInput = true;
this.sbStatus.Text = "Controller Input";
}
else this.sbStatus.Text = "Mouse Input";
_settingsService.ApplicationSettings.cameraAdjustNotify = true; _settingsService.ApplicationSettings.cameraAdjustNotify = true;
} }