Skip to content

Commit

Permalink
[PS] Lock Analog button ON in 0x79 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Oct 2, 2023
1 parent 4589095 commit b35c062
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/wired/ps_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ static void toggle_dsr(uint32_t port) {

static void ps_analog_btn_hdlr(struct ps_ctrl_port *port, uint8_t id) {
if (port->dev_type[id] != DEV_PSX_MOUSE && port->dev_type[id] != DEV_PSX_FLIGHT
&& port->dev_type[id] != DEV_PSX_PS_2_KB_MOUSE_ADAPTER) {
&& port->dev_type[id] != DEV_PSX_PS_2_KB_MOUSE_ADAPTER
&& (port->dev_id[id] == 0x41 || port->dev_id[id] == 0x73)) {
if (wired_adapter.data[id + port->mt_first_port].output[18]) {
if (!port->analog_btn[id]) {
port->analog_btn[id] = 1;
Expand Down

0 comments on commit b35c062

Please sign in to comment.