No0ne / ps2x2pico

USB keyboard/mouse to PS/2 interface converter using a Raspberry Pi Pico
MIT License
196 stars 35 forks source link

Fix mouse scroll wheel up action & introduce support for mouse button 4, 5 #7

Closed updateing closed 1 year ago

updateing commented 1 year ago

Hi,

Thank you for the great project! The IT department at my company demand that all computers must have USB disabled, leaving PS/2 as the only option for input devices. I could not find any decent PS/2 peripherals, and this project has come to the rescue.

I had a trial with a PS/2 to USB converter on my home PC before deploying at my workplace. This revealled following problems:

  1. When scrolling up, the computer would act weird, like someone was switching between apps quickly.
  2. Back/forward button were not working.

After some digging I've been able to fix these issues. Please have a look.

My mouse is Logitech MX Master 3s with a Bolt receiver, connected directly to the Pico without any hub.

updateing commented 1 year ago

Force pushed another fix: take only left/right/middle button status from the first byte in USB HID report. Higher bits are for button 4/5, they should not appear in the first byte of PS/2 mouse report.