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
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
120
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
 

Easyrider83

Advanced Member level 5
Advanced Member level 5
Joined
Oct 11, 2011
Messages
1,608
Helped
374
Reputation
748
Reaction score
362
Trophy points
1,363
Location
Tallinn, Estonia
Activity points
8,575
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.
 

mettiblack72

Junior Member level 1
Junior Member level 1
Joined
Jun 4, 2018
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
120
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

Top