From 74303a10de9b4db4ac21cfb4d07340d2e0bb1297 Mon Sep 17 00:00:00 2001 From: uberhalit Date: Sat, 13 Jan 2018 14:10:27 +0100 Subject: [PATCH] Changed "Readjust Overlay" functionality to "Reload Overlay", made all menu setings auto-close menu, added RDP optimization guide, fixed typos --- CitraTouchControl/GlobalVars.cs | 2 +- CitraTouchControl/MainWindow.xaml.cs | 7 ++-- CitraTouchControl/MenuWindow.xaml | 4 +-- CitraTouchControl/MenuWindow.xaml.cs | 15 +++++++-- CitraTouchControl/Properties/AssemblyInfo.cs | 6 ++-- README.md | 34 +++++++++++++------- 6 files changed, 45 insertions(+), 23 deletions(-) diff --git a/CitraTouchControl/GlobalVars.cs b/CitraTouchControl/GlobalVars.cs index 2e4488e..55adbaf 100644 --- a/CitraTouchControl/GlobalVars.cs +++ b/CitraTouchControl/GlobalVars.cs @@ -2,7 +2,7 @@ { class GlobalVars { - // fast access variables so user4settings doesn't have to be loaded/looped through every time user presses a control button + // fast access variables so user settings doesn't have to be loaded/looped through every time user presses a control button internal static short A_KEY = 0x41; // A internal static short B_KEY = 0x53; // S internal static short X_KEY = 0x5A; // Y (Z on QWERTZ-Layout) diff --git a/CitraTouchControl/MainWindow.xaml.cs b/CitraTouchControl/MainWindow.xaml.cs index 1b78fbf..901f91e 100644 --- a/CitraTouchControl/MainWindow.xaml.cs +++ b/CitraTouchControl/MainWindow.xaml.cs @@ -76,7 +76,7 @@ private void Window_Loaded(object sender, RoutedEventArgs e) } } - ResizeOverlay(); + ReloadOverlay(); // load user settings into fast accessable global vars GlobalVars.A_KEY = Properties.Settings.Default.A_KEY; @@ -310,10 +310,11 @@ private void ShowMenu() } /// - /// Gets citra window size and position and place overlay accordingly. + /// Resets citra handle, gets citra window size and position and place overlay accordingly. /// - internal void ResizeOverlay() + internal void ReloadOverlay() { + citraMainControlHwnd = IntPtr.Zero; RECT rect = new RECT(); if (GetWindowActualRect(citraHwnd, out rect)) { diff --git a/CitraTouchControl/MenuWindow.xaml b/CitraTouchControl/MenuWindow.xaml index ca93dc7..2c92d19 100644 --- a/CitraTouchControl/MenuWindow.xaml +++ b/CitraTouchControl/MenuWindow.xaml @@ -26,7 +26,7 @@