scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Mantis Mouse Pro Beta app does not recognize keyboard input

Open violetclearspark opened this issue 3 years ago • 7 comments

  • [✓] I have read the FAQ.
  • [✓] I have searched in existing issues.

Environment

  • OS: Linux Mint 21 Vanessa Cinnamon
  • scrcpy version: 1.24
  • installation method: manual build
  • device model: motorola one fusion+
  • Android version: 10

Bug: Mantis Mouse Pro Beta (play store link: https://play.google.com/store/apps/details?id=app.mantispro.mousekeyboard) does not recognize any keyboard input. It does recognize Middle Mouse Button, the default key to enter shooting mode, and mouse movement works as expected. A similar android app, Panda Mouse Pro (https://play.google.com/store/apps/details?id=com.panda.mouse), is able to recognize the keyboard inputs and functions as expected.

I tried checking without -K option, but it did not work in both the aforementioned apps. --otg mode works with Panda Mouse Pro, but not with Mantis Mouse Pro.

violetclearspark avatar Aug 08 '22 13:08 violetclearspark

I tried checking without -K option, but it did not work in both the aforementioned apps.

For keyboard and mouse, you need -KM. These options are basically the same as --otg, but with mirroring enabled.

For your issues, I'm afraid you should report the bug to these apps :/

rom1v avatar Aug 08 '22 14:08 rom1v

No, scrcpy works well with Panda Mouse Pro, with -KM or --otg options. There's no problem with Panda Mouse Pro, I just used it as a reference. But as for Mantis Mouse Pro, I've used an otg keyboard with the same app and it worked but it does not work with either -KM or --otg option in scrcpy. As I mentioned, Mantis Mouse Pro app works as expected when an otg (or Bluetooth?) keyboard is used but does not respond to any keyboard event sent by scrcpy.

violetclearspark avatar Aug 08 '22 18:08 violetclearspark

I have no idea, unfortunately. :/

rom1v avatar Aug 08 '22 21:08 rom1v

ok, np. Also, is there a keymapping function like in Qtscrcy or do you plan to implement one in the future?

violetclearspark avatar Aug 09 '22 12:08 violetclearspark

See #712

rom1v avatar Aug 09 '22 15:08 rom1v

@violetclearspark Hi! did you figure out anything? I just tried the Mantis Mouse app and yes, it does not recognize the HID mouse keyboard emulated by scrcpy, only WASD and middle mouse click worked.

Octopus does recognize that tho I'm not sure if it's a Mantis issue, or the way how scrcpy emulates mouse and keyboard...

chisato2309 avatar Oct 21 '22 14:10 chisato2309

@chisato2309 I was not able to get middle mouse button or WASD working, only mouse movement. Which game were you running? Some games support WASD natively. I found no solutions, though, unfortunately.

violetclearspark avatar Nov 12 '22 05:11 violetclearspark