From 9d7a92b210d327baf27d8698342dc302c71b3926 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Fri, 21 Dec 2018 15:14:06 -0600 Subject: [PATCH] Updated ReSharper settings --- BSIPA.sln.DotSettings | 4 ++++ IPA/Program.cs | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/BSIPA.sln.DotSettings b/BSIPA.sln.DotSettings index 5569d8b6..3bbe3c40 100644 --- a/BSIPA.sln.DotSettings +++ b/BSIPA.sln.DotSettings @@ -1,8 +1,12 @@  + WARNING BS IPA + <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="" Suffix="" Style="AaBb_AaBb" /></Policy> <Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb"><ExtraRule Prefix="" Suffix="" Style="aaBb" /></Policy> + <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="" Suffix="" Style="aaBb_aaBb" /></Policy> + <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="" Suffix="" Style="aaBb_aaBb" /></Policy> True True True diff --git a/IPA/Program.cs b/IPA/Program.cs index 005f7a7e..68d3b376 100644 --- a/IPA/Program.cs +++ b/IPA/Program.cs @@ -515,7 +515,7 @@ namespace IPA [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)] private static extern short GetKeyState(int keyCode); - private static KeyStates GetKeyState(Keys key) + private static KeyStates KeyState(Keys key) { KeyStates state = KeyStates.None; @@ -535,12 +535,12 @@ namespace IPA public static bool IsKeyDown(Keys key) { - return KeyStates.Down == (GetKeyState(key) & KeyStates.Down); + return KeyStates.Down == (KeyState(key) & KeyStates.Down); } public static bool IsKeyToggled(Keys key) { - return KeyStates.Toggled == (GetKeyState(key) & KeyStates.Toggled); + return KeyStates.Toggled == (KeyState(key) & KeyStates.Toggled); } } }