Hi!
Is there a way to "block" or "disable" the USB mouse/joystick aspects of the Teensy program so that it will look like a keyboard only and not a keyboard/mouse/joystick ?
In the beginning
I had an Arduino programmed to work as a USB keyboard when plugged into my Raspberry Pi. At the time, there was also a USB mouse plugged into the Raspberry Pi. Both were detected in a program that I use. That is, when running the application, both the USB keyboard and USB mouse were recognized.
The Move to Teensy
I've replaced my Arduino with a Teensy 3.1. I made a few code changes (TeensyDuino) for the native USB keyboard support, and the USB keyboard events still work great. However, when I start MAME, it no longer detects my USB mouse.
A Clue?
I suspect this is because the Teensy is recognized not as just a USB keyboard, but as a keyboard, and a mouse, and a joystick. So, I think MAME detects the Teensy mouse and Teensy joystick, and decides not to bother looking for additional USB mice. Sure enough, when I look at everything under /dev with the Teensy connected via USB, I see /dev/input/by-id/usb-Teensyduino_* links with names ending in *joystick and *mouse as well as *kbd . (long names shortened for readability)
Please advise on how to disable joystick/mouse Teensy USB types when compiling as a USB keyboard.
Thanks!
Is there a way to "block" or "disable" the USB mouse/joystick aspects of the Teensy program so that it will look like a keyboard only and not a keyboard/mouse/joystick ?
In the beginning
I had an Arduino programmed to work as a USB keyboard when plugged into my Raspberry Pi. At the time, there was also a USB mouse plugged into the Raspberry Pi. Both were detected in a program that I use. That is, when running the application, both the USB keyboard and USB mouse were recognized.
The Move to Teensy
I've replaced my Arduino with a Teensy 3.1. I made a few code changes (TeensyDuino) for the native USB keyboard support, and the USB keyboard events still work great. However, when I start MAME, it no longer detects my USB mouse.
A Clue?
I suspect this is because the Teensy is recognized not as just a USB keyboard, but as a keyboard, and a mouse, and a joystick. So, I think MAME detects the Teensy mouse and Teensy joystick, and decides not to bother looking for additional USB mice. Sure enough, when I look at everything under /dev with the Teensy connected via USB, I see /dev/input/by-id/usb-Teensyduino_* links with names ending in *joystick and *mouse as well as *kbd . (long names shortened for readability)
Please advise on how to disable joystick/mouse Teensy USB types when compiling as a USB keyboard.
Thanks!