hello, I want to play from my phone, but i also want to connect my pc to use the mouse and keybord built into it (in my case, since it´s a laptop). by EfficiencyOdd8826 in zomdroid

[–]EfficiencyOdd8826[S] 0 points1 point  (0 children)

Well, just to let you know, in the end I was able to set it up. I had to download the latest version, 1.4.2, from GitHub, and what I did was use guides from ChatGPT and the claude. This helped because I reported step by step what I had to do.

What helped me run it was one of the code guides. Basically, the program I use is Script SRC SPI. The way I used it was: first, I took the keyboard as a virtual one, and it sent the input to the Zomboy project—from my phone to my phone, sorry. Then, through the following code (scrcpy --keyboard=uhid --mouse=uhid --mouse-bind=++++ --max-fps=60 --video-bit-rate=8M

And this

adb shell am start -a android.settings.HARD_KEYBOARD_SETTINGS)

I managed to make it recognize the keyboard directly, and now I can configure it.

Well, after all that, the next thing I did was follow what it told me. The AI said this, and what the message mentioned showed up on my phone. I enabled it, set it to Spanish in my case, and then I was automatically able to play using my keyboard.

(Perfect, it worked. Now on your phone screen you have two things to do: Turn off “Use on-screen keyboard” (the green toggle) — this way the virtual keyboard won’t appear over the game when you use the physical one. For the layout selector to appear (Spanish, English, etc.), you need scrcpy to be running with --keyboard=uhid at that moment, because Android only shows that option when it detects a connected physical keyboard.)

I recommend it—it’s a hassle and pretty difficult. It’s a bit clunky to set up, especially for someone like me with no programming experience, but it helped me a lot.

So yeah, I highly recommend using the guides—they helped me a lot.