mirror of
https://github.com/uberhalit/SekiroFpsUnlockAndMore.git
synced 2026-06-13 09:57:55 +00:00
added an indicatot in statusbar on input device
This commit is contained in:
parent
1b51f98e41
commit
eee41349b4
1 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue