wwatson
Well-known member
I have a Teensy 3.6 I am using with a Logitech wireless keyboard/mouse combo, Linux Mate 18.04 OS, Arduino 1.8.7 and Teensyduino 1.44.
The keyboard seems to work fine but the mouse does not. I am using the mouse test sketch. The serial monitor does not display mouse movement or button presses except for pressing the right mouse button. Even then all mouse values are 0. "Mouse: buttons = 0, mouseX = 0, mouseY = 0, wheel = 0, wheelH = 0". If randomly press various combinations of the mouse buttons I get the following display.
Mouse: buttons = 0, mouseX = 0, mouseY = 0, wheel = 0, wheelH = 0
Mouse: buttons = 0, mouseX = 0, mouseY = 0, wheel = 0, wheelH = 0
Mouse: buttons = 0, mouseX = 0, mouseY = 0, wheel = 0, wheelH = 0
HID (C0000) key release:FF
HID (C0000) key press:FF
HID (C0000) key release:FF
HID (C0000) key press:1
HID (C0000) key press:FF
HID (C0000) key release:FF
HID (C0000) key release:1
HID (C0000) key press:1
Mouse: buttons = 0, mouseX = 0, mouseY = 0, wheel = 0, wheelH = 0
HID (C0000) key release:1
HID (C0000) key press:1
HID (C0000) key press:FF
Mouse: buttons = 0, mouseX = 0, mouseY = 0, wheel = 0, wheelH = 0
This is displayed when I plug in the USB receiver.
*** Device KB1 46d:c52e - connected ***
manufacturer: Logitech
product: USB Receiver
*** Device HID1 46d:c52e - connected ***
manufacturer: Logitech
product: USB Receiver
*** HID Device Mouse1 46d:c52e - connected ***
manufacturer: Logitech
product: USB Receiver
If I use a wired USB mouse and keyboard the is no problem. They work as expected.
I have narrowed it down to the version of keyboard.cpp in USBHost_t36 after the "Fix/workaround for gigabyte keyboard" patch. If I use a version of USBHost_t36 before the patch it works properly.
I have tried three other Logitech keyboard/mouse combinations without success.
Has anybody else had the same problem?
Thanks
The keyboard seems to work fine but the mouse does not. I am using the mouse test sketch. The serial monitor does not display mouse movement or button presses except for pressing the right mouse button. Even then all mouse values are 0. "Mouse: buttons = 0, mouseX = 0, mouseY = 0, wheel = 0, wheelH = 0". If randomly press various combinations of the mouse buttons I get the following display.
Mouse: buttons = 0, mouseX = 0, mouseY = 0, wheel = 0, wheelH = 0
Mouse: buttons = 0, mouseX = 0, mouseY = 0, wheel = 0, wheelH = 0
Mouse: buttons = 0, mouseX = 0, mouseY = 0, wheel = 0, wheelH = 0
HID (C0000) key release:FF
HID (C0000) key press:FF
HID (C0000) key release:FF
HID (C0000) key press:1
HID (C0000) key press:FF
HID (C0000) key release:FF
HID (C0000) key release:1
HID (C0000) key press:1
Mouse: buttons = 0, mouseX = 0, mouseY = 0, wheel = 0, wheelH = 0
HID (C0000) key release:1
HID (C0000) key press:1
HID (C0000) key press:FF
Mouse: buttons = 0, mouseX = 0, mouseY = 0, wheel = 0, wheelH = 0
This is displayed when I plug in the USB receiver.
*** Device KB1 46d:c52e - connected ***
manufacturer: Logitech
product: USB Receiver
*** Device HID1 46d:c52e - connected ***
manufacturer: Logitech
product: USB Receiver
*** HID Device Mouse1 46d:c52e - connected ***
manufacturer: Logitech
product: USB Receiver
If I use a wired USB mouse and keyboard the is no problem. They work as expected.
I have narrowed it down to the version of keyboard.cpp in USBHost_t36 after the "Fix/workaround for gigabyte keyboard" patch. If I use a version of USBHost_t36 before the patch it works properly.
I have tried three other Logitech keyboard/mouse combinations without success.
Has anybody else had the same problem?
Thanks