fixed switch pro controller button not holding down, added compatibility matrix, updated doc

This commit is contained in:
dekunukem
2022-03-18 23:57:15 +00:00
parent 46b63382c8
commit 7bfc54c85e
6 changed files with 47 additions and 43 deletions

View File

@@ -590,7 +590,10 @@ def raw_input_event_worker():
pcard_spi.xfer(list(last_mouse_button_msg))
# Gamepad buttons
elif BTN_SOUTH <= event_code <= BTN_THUMBR or event_code in gamepad_buttons_as_kb_codes:
gamepad_status_dict[this_id][event_code] = data[4]
this_btn_status = data[4]
if this_btn_status != 0:
this_btn_status = 1
gamepad_status_dict[this_id][event_code] = this_btn_status
# event is relative axes AKA mouse
elif data[0] == EV_REL and event_code == REL_X: