Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
105.26k stars 10.22k forks source link

genshin impact problem #3010

Open jhonwick6904 opened 2 years ago

jhonwick6904 commented 2 years ago

hey guys first of all thxxx for the amazing application you have provided. i have trying to play genshin impact using scrcpy but i cannot control my game using keyboard so is there any way to play the game using keyboard ? i still can use the mouse for moving and attacking using left click and dragging but its quite hard and i have been able to use the keyboard for chatting in the game.

i also read https://github.com/Genymobile/scrcpy/issues/87 but it did not help me and even using the ctrl + k command but still nothing happened so is there any way so i can play the game ? once again thanks for the app i really appreciate it.

cheers

rom1v commented 2 years ago

Does it behave the same if you plug a physical keyboard (via an OTG USB cable or via bluetooth)?

If the game does not support keyboard input, then it won't work. It would require keymapping (which scrcpy does not support, see #712) to inject a touch event at a specific location when you press a key.

jhonwick6904 commented 2 years ago

is --map implemented ?

rom1v commented 2 years ago

No.

jhonwick6904 commented 2 years ago

okay i used the Bluetooth keyboard works good . but how do i use scrcpy and assign keys to a location on mobile qtscrcpy lags too much. also is there a way to apply to --map command?

rom1v commented 2 years ago

i used the Bluetooth keyboard works good

Oh, so the game supports keyboard input. It's unexpected that it does not work with scrcpy.

If you are on Linux, try scrcpy --hid-keyboard (over USB).

rom1v commented 2 years ago

but how do i use scrcpy and assign keys to a location on mobile

You can't.

also is there a way to apply to --map command?

No, it's not implemented.

jhonwick6904 commented 2 years ago

currently on windows and i am trying to find keymappers for android but there is no good keymapper if i can somehow use the keyboard and which are connected to my pc and be able to control the game i will be happy and the i can use scrcpy to cast my screen. do you know any good keymapper which are free?

rom1v commented 2 years ago

i used the Bluetooth keyboard works good

I'm surprised that you can move with a bluetooth keyboard arrow keys, I just tested the game with --hid-keyboard I can't move that way in this game.

jhonwick6904 commented 2 years ago

thats wierd

jhonwick6904 commented 2 years ago

i am gonna make json script to use qtscrcpy and see if its working or not cause i have seen people use qtscrcpy and control the game

jhonwick6904 commented 2 years ago

works pretty darn good with qtscrcpy u just have to make a script according to ur phone close this if u want

semarainc commented 2 years ago

hi @jhonwick6904 , would you mind to share the json script? im also in need for this too :D

thanks

5vr commented 9 months ago

I'm trying to do the same thing, I've mapped my Bluetooth keyboard using Mantis Mouse Pro but I don't have a mouse. Is there some way to forward mouse input to the phone so it appears natively on the phone (like with a black cursor)? Or has someone or you built a mapper for scrcpy?