From 95c1ce7289a0d3f2e2792d5062c64fff2e1c7b59 Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Sat, 12 Oct 2024 02:13:20 +0000 Subject: [PATCH] [WIRED] Add support for PS OG analog ctrl rumble --- main/wired/ps_spi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/wired/ps_spi.c b/main/wired/ps_spi.c index 5e5ced4d..1df93bd1 100644 --- a/main/wired/ps_spi.c +++ b/main/wired/ps_spi.c @@ -277,6 +277,9 @@ static void ps_cmd_req_hdlr(struct ps_ctrl_port *port, uint8_t id, uint8_t cmd, if (port->rumble_l_state[id]) { fb_data.data[1] = req[port->rumble_l_idx[id]]; } + if (!(port->rumble_l_state[id] && port->rumble_r_state[id]) && req[0] == 0x73) { + fb_data.data[0] = req[1]; + } fb_data.header.wired_id = id + port->mt_first_port; fb_data.header.type = FB_TYPE_RUMBLE; fb_data.header.data_len = 2;