Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
104.38k stars 10.16k forks source link

Mouse click not working but Keyboard works perfectly #4902

Closed graphyle closed 1 month ago

graphyle commented 1 month ago

Environment

Description Hello, the bug, as is it described in the title, is that the mouse click (allowing navigation on the device) doesn't works but, surprisingly, the keyboard works perfectly. Search and saw a lot of topic speaking about instructions like :

-m1750

This command helps well to resolve the resolutions problems, but not the "WARN: Ignore touch event, it was generated for a different device size" problem.

scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     -->   (usb)  HPV2T7VQ                        device  Lenovo_TB_XXXXX
C:\Users\XXXXX\Downloads\scrcpy-win64-v2.4\scrcpy-win64-v2...file pushed, 0 skipped. 202.9 MB/s (69007 bytes in 0.000s)
[server] INFO: Device: [LENOVO] Lenovo Lenovo TB-XXXXX (Android 10)
[server] WARN: Audio disabled: it is not supported before Android 11
INFO: Renderer: direct3d
WARN: Demuxer 'audio': stream explicitly disabled by the device
INFO: Texture: 1920x1200
INFO: Texture: 1920x1080
[server] WARN: Ignore touch event, it was generated for a different device size
[server] WARN: Ignore touch event, it was generated for a different device size

Thanks for your help! ;)

rom1v commented 1 month ago

Try scrcpy -m1728.

Explanation: your device is 1920×1200, but the encoder decides on its own to change the output size (probably because it does not support a higher resolution) to 1920×1080. If you resquest a max size of 1728, it will encode at 1728×1080 (which is the same ratio as 1920×1200).

graphyle commented 1 month ago

Works perfectly, thanks a lot! ^^

graphyle commented 1 month ago

Works perfectly, thanks a lot! ^^