Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
110.3k stars 10.58k forks source link

Clicks limited to smaller region #3521

Open daniel-lo opened 2 years ago

daniel-lo commented 2 years ago

Hi, first steps on my fire-tv-cube (all updates done). On the main screen I cannot access Settings and Profile .. so somewhat the space I can click in is limited. I also have problems navigating menus and would like to ask for the ideal command line for mouse control .. just in case somebody has already experimented this through.

Cheers

rom1v commented 2 years ago

Can you click everywhere using adb shell input tap <x> <y> (where <x> and <y> represent the position)?

daniel-lo commented 2 years ago

@rom1v

sorry .. too stupid to understand .. scrcpy windows launches with fire tv and I notice that click reagion is limited. How can I uuse adb shell in conjunction?

rom1v commented 2 years ago

From the scrcpy directory, click on open_a_terminal_here.bat, this opens a terminal. Execute adb shell … from there.

Note that this is independent of scrcpy.

rom1v commented 2 years ago

If you want to know the coordinates easily, run scrcpy -Vdebug (when you click, it will print the coordinates in the console).

daniel-lo commented 2 years ago

Nope .. nothing happening when I click (-Vdebug) .. all I see is static this:

DEBUG: Using server (portable): C:\Program Files (x86)\scrcpy\scrcpy-server
C:\Program Files (x86)\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 104.0 MB/s (41159 bytes in 0.000s)
[server] INFO: Device: Amazon AFTR (Android 9)
[server] DEBUG: Using encoder: 'OMX.amlogic.video.encoder.avc'
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
INFO: Renderer: direct3d
DEBUG: Trilinear filtering disabled (not an OpenGL renderer)
DEBUG: Using icon (portable): C:\Program Files (x86)\scrcpy\icon.png
INFO: Initial texture: 1920x1080
DEBUG: Starting demuxer thread
rom1v commented 2 years ago

Oh, sorry: scrcpy -Vverbose

daniel-lo commented 2 years ago

so the clicks are registed fine .. but nothing happens when I click on the cogwheel. And when I click in about the first half of the cogwheel .. the app window launches .. which is the icon to the left. Exceeding to the right .. doesn't help get the settings.

grafik

rom1v commented 2 years ago

so the clicks are registed fine .. but nothing happens when I click on the cogwheel.

Even with adb shell input tap <x> <y>? So the clicks are sent to your device, which does not react to them properly. Maybe there is a hidden overlay which capture them or something.

If your device is plugged over USB, can you try in HID mode: scrcpy -KM (you should see the mouse on your device).

daniel-lo commented 2 years ago

don't know if I am doing this right .. just opened an extra cmd window ...

grafik

device is on my LAN

daniel-lo commented 2 years ago

And if tap would work .. it wouldn't explain why half the cogwheel is allocated to the apps tile.

rom1v commented 2 years ago
adb shell input tap 1764 581

(my fault, I forgot input in my last comment)

daniel-lo commented 2 years ago

ok .. still no reaction

rom1v commented 2 years ago

OK, it's a problem/bug in your device ROM.

daniel-lo commented 2 years ago

Hmm .. so I am the first FireTV Cube user of scrcpy?

rom1v commented 2 years ago

I don't know.

But you reproduce the problem without scrcpy (with just adb shell input tap), so it could not be a bug in scrcpy :)

daniel-lo commented 2 years ago

keyboard input works .. how do I simulate the burger key?

karlic commented 1 year ago

Hmm .. so I am the first FireTV Cube user of scrcpy?

No. I also have this problem on TWO Fire TV Cubes. I'm connecting over TCP(?)/IP (NOT USB) adb disconnect; adb connect XX.XX.XX.XX:5555; scrcpy -b2M -m800 --max-fps 25 If I use the mouse to click on any of the five leftmost icons, I get a response as if I had pressed the big round button on the remote (i.e., as expected). If I mouse click on the Netflix or other rectangles, the rectangle is selected as if I had moved the cursor using the remote and a second click opens the appropriate app, as if I had pressed the round button on the remote. If I mouse click on the gear icon at the far right, nothing at all happens. HOWEVER, if I use the keyboard arrow keys to navigate to the gear icon the settings are displayed and pressing return moves the cursor down to the settings squares. When in the Netflix app, the mouse doesn't work on anything (that I can see).

The problem also occurs (probably unsurprisingly) when using scrcpy-mobile on iPadOS (see https://github.com/wsvn53/scrcpy-mobile/issues/13).

Screenshot 2022-11-07 at 19 08 54