mouse with 16 bit x and y axes is hid compatible?

spalacios 21 Reputation points
2021-03-08T09:00:59.667+00:00

Hello,

I'm working in a personal new project, using a stm32 to "simulate" a mouse. My specifications in this projects are:

  • 5 buttons
  • 16-bit x axe
  • 16-bit y axe
  • 8-bit wheel

I'm pretty sure that the 5 buttons and 8-bit wheel is HID compatible:

16-bit x and y axes are HID compliant? Or Do I have to develop a driver?

Thanks in advance.

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,546 questions
0 comments No comments
{count} votes

Accepted answer
  1. Doron Holan 1,801 Reputation points
    2021-03-08T17:27:11.157+00:00

    Yes, the in box driver should support a mouse with these characteristics. The driver translates the device reported data into a MOUSE_INPUT_DATA. If you look at this data structure, the X, Y, and ButtonData fields are all large enough to handle the data from your device. https://learn.microsoft.com/en-us/windows/win32/api/ntddmou/ns-ntddmou-mouse_input_data

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful