1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-21 21:30:12 +00:00

Add failure condition for loading custom camera view

This commit is contained in:
hawkeye 2023-09-04 21:24:57 -04:00
parent 5bbdc539eb
commit c43c520b19

View file

@ -55,6 +55,13 @@ namespace MSFSPopoutPanelManager.WindowsAgent
LeftClick(x, y); LeftClick(x, y);
// Force cursor reset
PInvoke.SetCursorPos(x + 1, y);
Thread.Sleep(100);
PInvoke.SetCursorPos(x, y);
Thread.Sleep(300);
if (useSecondaryKeys) if (useSecondaryKeys)
{ {
InputSimulator.Keyboard.KeyDown(WindowsInput.Native.VirtualKeyCode.LCONTROL); InputSimulator.Keyboard.KeyDown(WindowsInput.Native.VirtualKeyCode.LCONTROL);