From fa5e32f92d489315eca5356f549bb5109d98ba83 Mon Sep 17 00:00:00 2001 From: niklascfw Date: Fri, 10 Apr 2026 21:29:48 +0200 Subject: [PATCH] hid: map Vol+/- to up/down even with left Joy-Con connected Made-with: Cursor --- source/hid/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/hid/hid.c b/source/hid/hid.c index f709919..5469ce0 100644 --- a/source/hid/hid.c +++ b/source/hid/hid.c @@ -50,8 +50,8 @@ Input_t *hidRead(){ LbaseY = controller->lstick_y; } - inputs.up = (controller->up || (controller->lstick_y > LbaseY + 500)) ? 1 : 0; - inputs.down = (controller->down || (controller->lstick_y < LbaseY - 500)) ? 1 : 0; + inputs.up = (controller->up || (controller->lstick_y > LbaseY + 500) || inputs.volp) ? 1 : 0; + inputs.down = (controller->down || (controller->lstick_y < LbaseY - 500) || inputs.volm) ? 1 : 0; inputs.left = (controller->left || (controller->lstick_x < LbaseX - 500)) ? 1 : 0; inputs.right = (controller->right || (controller->lstick_x > LbaseX + 500)) ? 1 : 0; }