Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to read mouse position from PC

Status
Not open for further replies.

mettiblack72

Junior Member level 1
Junior Member level 1
Joined
Jun 4, 2018
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
150
Hello ,

I use stm32f103c8t6 and I want to run USB HID Mouse , I can connect to my PC and change the position of mouse cursor

but I can't read the current mouse cursor position to use that , I can just add the X and Y value of cursor I use USBD_HID_SendReport( &USBD_Device , Buffer , 4 ) ; to do that

I can't say to cursor go to exact (X,Y)

what should I do ?

please help
 

Nothing you can do. All what you can do is written in report descriptor. It can only send data to host according to defined rules.
Mouse position is relative. If you want absolute, you may try use emulated touchpad, not mouse.
 
thanks for reply

can you guide me , for example if I want to move the mouse cursor to (x, y) from the current position ? what should I do ?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top