Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: Teensy 3.2 Mouse Only Mode

  1. #1
    Junior Member
    Join Date
    Sep 2018
    Posts
    19

    Teensy 3.2 Mouse Only Mode

    How can I make teensy 3.2 behave as only a mouse and show as 1 device in device manager?
    Can I still use moveTo and click?

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,529
    You'll need to find the usb_desc.h file and edit it. See the comments at the top of that file for instructions.

    If using Windows, you'll also need to find software to remove the prior info about the device from the Windows Registry before you make each attempt at changing usb_desc.h. This isn't an issue on Mac and Linux, so it's usually easier to use those system for testing.

    Also keep in mind, if you remove the HID-based serial emulation, Serial.print() won't work to the serial monitor, and Arduino won't be able to ask your board to reboot. You'll need to press the button for each upload. If you want to print info about what's going on, using Serial1 with an USB-serial adaptor can help.

  3. #3
    Junior Member
    Join Date
    Sep 2018
    Posts
    19
    Thanks Paul, I successfully removed the keyboard and the joystick but teensy still appears as 2 mice. How can I remove one? And do I lose any functionality?

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,529
    Maybe it's showing the 2 different reports from the HID descriptor as 2 devices?

    I'm afraid that will be more work, might not even be possible. I'm not sure. But to work on this you'll need to dig into the HID reports. Maybe there's some way to merge them into a single report? But it's done this way so absolute position can be sent without relative, and vise versa. I don't see any easy answer.

  5. #5
    Junior Member
    Join Date
    Sep 2018
    Posts
    19
    Hmm, yeah for my project it's really important to show it as only one device in device manager and at the PC at all. I don't really need to use absolute position so maybe I can somehow remove that part to make it easier. Tho I got another idea for my project now with using keyboard instead of mouse but I will need to make it copy all input from my keyboard using probably another PC to send the data of keystrokes. So yeah if this isn't possible, I'll need to use that.

    Thanks for helping anyways since this will also help for it to show up only as a keyboard.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •