Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question