From a97e14ae5e1944635110294028ebc5ff55387967 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 4 May 2016 17:18:27 +0200 Subject: [PATCH] fixed small, stupid mistake --- controller_patcher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller_patcher.c b/controller_patcher.c index ef42d45..1d79250 100644 --- a/controller_patcher.c +++ b/controller_patcher.c @@ -758,9 +758,9 @@ int getButtonPressed(HID_Data_Struct data, int VPADButton){ dir3_1 = config_controller[device][CONTRPS_VPAD_BUTTON_DPAD_NE][1]; direction = 1; } - if(direction && ((src[dir1_0] & mask) == dir1_1) || + if(direction && (((src[dir1_0] & mask) == dir1_1) || ((src[dir2_0] & mask) == dir2_1) || - ((src[dir3_0] & mask) == dir3_1)) return 1; + ((src[dir3_0] & mask) == dir3_1))) return 1; } }