0

I want to use a physical mouse connected to a mobile device and track its events in my Flutter application to control the PC as if the mouse were connected to it.

How to ensure continuous and unlimited mouse movement? I have an application installed that can do just that, but it's not open source.

I've tried Listener and MouseRegion, but the mouse just rests against the borders of the screen.

asked Feb 18, 2024 at 13:56
3
  • It is unclear how you are connecting the PC to your Android app. Be aware that Flutter is a UI framework and depends upon the native Java/Kotlin/C code to do certain things on device. The key terms to search on is 'human interface device' or 'HID'. See: Reading raw mouse data on android Commented Feb 19, 2024 at 1:14
  • I forgot to mention that I connect my mobile device to a PC via Bluetooth. I've already tried what you suggested, but for some reason it doesn't work, as if it doesn't see the connected mouse at all. I'll try something else soon, but for now I'm confused by the current situation. Commented Feb 19, 2024 at 18:20
  • Okay, it was a cheap mouse. I connected another one, and now everything is working... Commented Feb 27, 2024 at 14:34

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.