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

@@ -1 +1 @@
ssh pi@192.168.1.56
ssh pi@192.168.1.61

View File

@@ -2,5 +2,5 @@
# sh sync.sh; ssh -t pi@192.168.1.67 "pkill python3;cd ~/usb4vc/rpi_app;python3 usb4vc_main.py"
scp ./* pi@192.168.1.56:~/usb4vc/rpi_app
ssh -t pi@192.168.1.56 "pkill python3;cd ~/usb4vc/rpi_app;python3 usb4vc_main.py"
scp ./* pi@192.168.1.61:~/usb4vc/rpi_app
ssh -t pi@192.168.1.61 "pkill python3;cd ~/usb4vc/rpi_app;python3 usb4vc_main.py"

View File

@@ -1,4 +1,4 @@
RPI_APP_VERSION_TUPLE = (0, 0, 6)
RPI_APP_VERSION_TUPLE = (0, 0, 7)
code_name_to_value_lookup = {
'KEY_RESERVED':(0, 'kb_key'),

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: