R
R
Romanson2016-06-23 14:59:28
Delphi
Romanson, 2016-06-23 14:59:28

How to track the movement of the mouse (not the coordinates of the cursor, but the movement of the mouse)?

I really need your help, I'm trying to implement some idea, and in this idea, the mouse on the PC acts as a kind of remote control for Android, i.e. (a kind of cursor that you can drive on the phone screen on os android). To implement it, you need to transfer the movement of the mouse - that if the mouse moved to the left, then on the phone screen it went to the left - while the mouse does not move on the monitor screen

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2016-06-23
@Romanson

Purely as an option, because Delphi has not been involved for a long time.
Place courses from the middle.
Read cursor position.
If the cursor has moved, send a displacement vector along two axes to the device.
Move the cursor back to the middle.
Moving the cursor - https://yandex.ru/search/?msid=1466683990.42986.22...
The second option.
Make a window with the same aspect ratio as the phone screen.
Set a limit on the boundaries of mouse movement - https://otvet.mail.ru/question/34694627
Send absolute readings to the phone within the window.

R
Romanson, 2016-06-25
@Romanson

The question remains relevant. You need to move the mouse, not the cursor. Or tell me how to work with the mouse driver

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question