Skip to content

mouse input #1

Open
Open

Description

@ericwan78

Is there any chance you can give me some pointers on modifying this code to a mouse? I tried it without success. As a summary, I have done the following:

  1. set class to 0x2580 in the server
  2. match HID report format to that of HID mouse on both the server and client.

As for the rest, I followed all the steps in your tutorial and the application is able to run without crashing. The mouse cursor just doesn't respond. Is there anything I am missing?

Thanks for your help in advance.

Activity

  1. yaptb commented on Jan 15, 2017

    @yaptb
    Owner

    I am by no means an expert at this stuff, but I am guessing that the payload for a HID mouse event report will be different from a keyboard one, so you'll need to consult the HID documentation to see how to build this,

    Here are the HID specs: http://www.usb.org/developers/hidpage#HID_Usage

    It also looks like adafruit have something you might be able to adapt: https://learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard/sending-keys-via-serial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions