From 35d014916216dac26b0c2773b8750773fd98a55b Mon Sep 17 00:00:00 2001 From: Andrey Bondrov Date: Sun, 14 Dec 2014 00:29:58 +1000 Subject: [PATCH] Less code for bool variable inversion --- Common/KeyMap.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Common/KeyMap.cpp b/Common/KeyMap.cpp index 810e1c7f68..863106c63c 100644 --- a/Common/KeyMap.cpp +++ b/Common/KeyMap.cpp @@ -949,10 +949,7 @@ const std::set &GetSeenPads() { // Swap direction buttons and left analog axis void SwapAxis() { - if (g_swapped_keys) - g_swapped_keys = false; - else - g_swapped_keys = true; + g_swapped_keys = !g_swapped_keys; } } // KeyMap