mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Less code for bool variable inversion
This commit is contained in:
1 parent
89c6f76456
commit
35d0149162
1 file changed
+1
-4
+1
-4
@@ -949,10 +949,7 @@ const std::set<std::string> &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
|
||||
Reference in new issue
Block a user