From 12a473ecbe02260b9742f80b849f63df3a0c53f2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 7 Aug 2018 10:50:22 -0400 Subject: [PATCH] hid: Correct bitwise AND for pro controllers in hidInitializeVibrationDevices() LAYOUT_PROCONTROLLER is a value of zero, so the bitwise AND condition here would always be false (TYPE_PROCONTROLLER, on the other hand is a value of 1) --- nx/source/services/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/services/hid.c b/nx/source/services/hid.c index aa3dcf71..1ade0762 100644 --- a/nx/source/services/hid.c +++ b/nx/source/services/hid.c @@ -932,7 +932,7 @@ Result hidInitializeVibrationDevices(u32 *VibrationDeviceHandles, size_t total_h if (tmp_id == CONTROLLER_HANDHELD) tmp_id = 0x20; - if (tmp_type & LAYOUT_PROCONTROLLER) { + if (tmp_type & TYPE_PROCONTROLLER) { tmp_type = 3; } else if (tmp_type & TYPE_HANDHELD) {