summaryrefslogtreecommitdiff
path: root/hid
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-08-24 10:06:24 +0300
committerMaxim Devaev <[email protected]>2023-08-24 10:06:24 +0300
commitcbea3ce12fd7e26c750b7bb82236848621a4f17a (patch)
tree40708c95afc1e965425b125ac9fb27d103b5d503 /hid
parentd9fd6b89213fc3fef324ae52d537e7e979b601df (diff)
pico hid: prefer ps/2 if usb is disabled
Diffstat (limited to 'hid')
-rw-r--r--hid/pico/src/ph_outputs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hid/pico/src/ph_outputs.c b/hid/pico/src/ph_outputs.c
index 61865fa6..307b25db 100644
--- a/hid/pico/src/ph_outputs.c
+++ b/hid/pico/src/ph_outputs.c
@@ -74,13 +74,13 @@ void ph_outputs_init(void) {
if (outputs < 0) {
outputs = 0;
- if (o_ps2_enabled && o_ps2_kbd) {
+ if (o_ps2_enabled && (o_ps2_kbd || o_usb_disabled)) {
outputs |= PH_PROTO_OUT1_KBD_PS2;
} else if (!o_usb_disabled) {
outputs |= PH_PROTO_OUT1_KBD_USB;
}
- if (o_ps2_enabled && o_ps2_mouse) {
+ if (o_ps2_enabled && (o_ps2_mouse || o_usb_disabled)) {
outputs |= PH_PROTO_OUT1_MOUSE_PS2;
} else if (!o_usb_disabled) {
if (o_usb_enabled_w98 && o_usb_mouse_w98) {