quangthanh010290 / keyboard_mouse_emulate_on_raspberry

Bluetooth Keyboard Mouse Emulator on Raspberry Pi
https://thanhlev.github.io/
MIT License
289 stars 98 forks source link

Absolute mouse position #30

Open Manny1806 opened 2 years ago

Manny1806 commented 2 years ago

First I wanna say this project is great and has been very useful to me. I've been using the mouse and keyboard emulate functions a lot and it would be awesome if I could send absolute mouse coordinates to mouse_emulate.py rather than just relative movements. Maybe there is a simple alteration I can make to the send_mouse byte array to make this happen?

quangthanh010290 commented 2 years ago

Hi Manny1806, Thank you for your feedback, I will develop this feature when I have more time.

minoskt commented 2 years ago

Hello. I think iOS does not support absolute mouse coordinates (but please correct me if I am wrong). I would also love to see this happen.

quangthanh010290 commented 2 years ago

hi minoskt, I think you are right, I had tried to develop absolute position in the pass but failed. I'm not sure does it support today.

minoskt commented 2 years ago

I haven't tried it in iOS / iPadOS 15. However, your implementation is very generic and would be a nice addition anyway. Thank you for your great work.

PQALAB commented 2 years ago

Is it possible to get the mouse's current position on an iOS device's screen? Like something that the device sends back to the bluetooth server?

Weeves commented 2 years ago

Is it possible to get the mouse's current position on an iOS device's screen? Like something that the device sends back to the bluetooth server?

Couldn't you do a relative move, bigger than the screen (taking the "cursor" to the bottom left, and then move to the position you want/need? If the moves are only done from the virtual mouse, you could then keep track of it. Just a thought