Skip to content

Commit

Permalink
[WIRED] Add support for PS OG analog ctrl rumble
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Oct 12, 2024
1 parent 703bb3e commit 95c1ce7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/wired/ps_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 95c1ce7

Please sign in to comment.