Skip to main content
erisson
Associate II
December 19, 2018
Question

How to interpret the mouse coordinates? (Using USB HOST FS HID Class)

  • December 19, 2018
  • 1 reply
  • 844 views

I'm reading the values ​​of the mouse coordinates as well as the buttons, however I do not know if I'm missing any configuration or if I do not know how to interpret the values ​​correctly, but they seem to be strange.

When I move mouse to left the values ​​range from 0x01 to 0x09;

When I move mouse to right the values ​​range from 0xF1 to 0xFF;

The same thing happens up and down.

Is that correct?

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
December 19, 2018

As int8_t relative changes against the previous state.

JW