Scrcpy injects keyboard and mouse clicks, so for games where you can just click on specific locations to make actions, you can.
Note that the keyboard keys only work if the game support them (if the game only accept actions by clicking on specific UI widgets on the screen, the keyboard actions do nothing on the game).
However, for first-person-shoot, the mouse is "relative", not "absolute", and movements (even without clicks) are important. This mode is not supported yet.
HID keyboard has been implemented for the next version: https://github.com/Genymobile/scrcpy/pull/2632
I would like to implement HID mouse too. With this, it would be possible to play FPS games with the mouse. It's support is currently limited to Linux though;
By the way, after changing USB mode of
Galaxy S4 from "DM + ACM +ADB" to
"MTP + ADB" the battery last longer
and all devices connected to this phone
still keep working correctly, including
this Samsung Dock:
https://www.amazon.com/-/es/EDD-S20EWEG/dp/B00B7FI44Q
> whenever I get scrcpy open in the CMD it won't let me type anything
The parameters must be passed as scrcpy arguments (so before scrcpy is started). Follow the steps here: https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#command-line-on-windows
What is the result of adb devices
(on Windows, from the scrcpy ditectory).
If you don't know how to use the command line: https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#command-line-on-windows
scrcpy uses adb to communicate with the device (it opens a tunnel over adb), so in any case you must be able to access your device via adb (i.e. your device must be listed in adb devices
).
This can be done over the internet using SSH tunnels: https://github.com/Genymobile/scrcpy#tunnels
> when you say the scrcpy window, are you referring to the mirrored image of my phone on my PC? That didn't work.
Which scrcpy version?
> I used Windows cmd
Read the section "Command line on Windows": https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#command-line-on-windows
INFO: scrcpy 1.18 <https://github.com/Genymobile/scrcpy>
adb: error: failed to get feature set: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device. ERROR: "adb push" returned with value 1
https://github.com/Genymobile/scrcpy#shortcuts
> I don't know how to do a middle-click with my laptop touchpad
Left+right click
> It is possible to start wireless mirroring without going through the wired-mirroring first directly?
No, USB must be connected at least once after each device reboot.
https://github.com/Genymobile/scrcpy/blob/master/DEVELOP.md#overview
The video is encoded on the device by an hardware encoder. It is sent to the computer over TCP, and decoded and rendered on the computer.
The performance depends on:
- the hardware encoder on the device
- the encoding parameters (size (-m
), bitrate (-b
)…)
- the connection (USB vs wifi) (the connection also depends on the device itself: some devices behave better than others on the same wifi connection)
- the computer for decoding (old computers may not have hardware decoder)
- render drivers (directx, opengl…)
Typically, the performance comes from the device, but it depends on what performance issues you observe.
I have the same precautions about my phone battery. I use this app that rings an alarm when it reaches the capacity you set it.
It allows you to set an alarm at a predetermined percentage capacity that will ring when it reaches it and another alarm to when it is bellow a capacity percentage. I set mine to go on at 85% and at 20% and I try to keep the battery somewhere between that range.
https://play.google.com/store/apps/details?id=com.best.battery.alarm&hl=en_US
Hope it helps.