ESP32-BLE-Mouse icon indicating copy to clipboard operation
ESP32-BLE-Mouse copied to clipboard

My screen is 2K, and I set mobile blemouse move(200, 0);The actual position is incorrect.

Open bbhxwl opened this issue 2 years ago • 2 comments

I set 100, and he moves to the right. I set 200, and he moves to the left. Why?

bbhxwl avatar Sep 08 '22 08:09 bbhxwl

Because a mouse is neither aware of your screen resolution, nor aware of your current mouse position. It doesn't even know the amount of pixels it will move for each unit because that is configured on the OS level.

x and y are signed chars which means you can't go beyond 127. If you do it anyway you'll get unexpected behavior as explained in the link. If you want to move the cursor further, you need to call the move method multiple times.

T-vK avatar Sep 08 '22 08:09 T-vK

I see. You can only enter 127 at most

bbhxwl avatar Sep 09 '22 00:09 bbhxwl