Skip to content

Mouse clicks do not work #70

Closed
Closed
@Pong420

Description

@Pong420

I am using Xiaomi max 2 on macOS High Sierra 10.13.3

scrcpy v1.0

dependencies:
 - SDL 2.0.8
 - libavcodec 57.107.100
 - libavformat 57.83.100
 - libavutil 55.78.100

Activity

izayl

izayl commented on Mar 15, 2018

@izayl

Xiaomi Mi 6 has the same issue

izayl

izayl commented on Mar 15, 2018

@izayl

@Pong420 Maybe this issue can fix. But I have not test it.

Pong420

Pong420 commented on Mar 15, 2018

@Pong420
Author

@izayl It seems to not be working for me

rom1v

rom1v commented on Mar 15, 2018

@rom1v
Collaborator

Duplicate of #18.

Already fixed on v1.1.

izayl

izayl commented on Mar 15, 2018

@izayl

@rom1v I have pull the newest code of master. But the problem still exist.

rom1v

rom1v commented on Mar 15, 2018

@rom1v
Collaborator
scrcpy -v

?

rom1v

rom1v commented on Mar 15, 2018

@rom1v
Collaborator

Did you compile using prebuilt server v1.1?

Pong420

Pong420 commented on Mar 15, 2018

@Pong420
Author

sorry, how to check prebuilt server version?

v1.1 still not work

scrcpy v1.1

dependencies:
 - SDL 2.0.8
 - libavcodec 57.107.100
 - libavformat 57.83.100
 - libavutil 55.78.100
izayl

izayl commented on Mar 15, 2018

@izayl

I find the reason of the issue,switch below option for obtain the permission of simulating Input

image

rom1v

rom1v commented on Mar 15, 2018

@rom1v
Collaborator

Did you compile everything, or downloaded the prebuilt server (the Android part)?

If you don't know, please give the result of:

mesonconf x

(from the scrcpy root directory)

Pong420

Pong420 commented on Mar 15, 2018

@Pong420
Author

Solved, enable the permission of simulating Input work for me

Thanks all

rom1v

rom1v commented on Mar 15, 2018

@rom1v
Collaborator

@izayl Thank you very much! I added a question in the FAQ.

moamahi

moamahi commented on Jun 13, 2018

@moamahi

Ciao guys. Thank you so much for great work!
I'm on a vernee mix 2 (not a grat phone and probably a corner case).
I'm not able to click with left mouse. Only right. Unfortunately I can't find that option in my menu (doesn't exist at all). Is there a way for sending the option via ABD?
Using Windows (10 64bit)
I've tryed 1.0 1.1 1.2 (64bit) Vernee mix run android 7.0 security patch nov. 2017

86 remaining items

elias8808

elias8808 commented on Aug 24, 2024

@elias8808

I can't use my mouse or keyboard. Has anyone found a solution?

elias8808

elias8808 commented on Aug 24, 2024

@elias8808

solved. you must enable "usb debugging security settings" on your cell phone and then when connecting the cell phone to the PC, you must select "file transfer". this is how it worked for me.

LarryP327

LarryP327 commented on Jan 3, 2025

@LarryP327

I see quite a few comments with similar issues. My mouse, keyboard, and audio will not work using scrcpy. I am using scrcpy-win64-v3.1. I double-clicked the "no-console.vbs" as it said in the setup video on YouTube. I have restarted my phone and computer. The screen mirroring works. I do not see "USB debugging security settings" in the developer options. However, USB debugging is turned on. I have a Pixel 9 running Andriod 15. Is there a fix?

rom1v

rom1v commented on Jan 3, 2025

@rom1v
Collaborator

I double-clicked the "no-console.vbs"

Run from a console, you might have more details: https://github.com/Genymobile/scrcpy/blob/master/doc/windows.md#run

If you still don't have any relevant error, run with scrcpy -Vverbose to see what's injected.

LarryP327

LarryP327 commented on Jan 3, 2025

@LarryP327

I'm a complete novice at this. Where would I run scrcpy -Vverbose from?

rom1v

rom1v commented on Jan 3, 2025

@rom1v
Collaborator

Read the link in my previous comment, it's explained.

LarryP327

LarryP327 commented on Jan 3, 2025

@LarryP327

It came up with an error. "Could not find any ADB device" "server connection failed".

elfomze

elfomze commented on Jan 29, 2025

@elfomze

I'm facing the same issue on:
Host:
OS: Ubuntu 22.04.5 LTS x86_64
Host: Precision 7680
Kernel: 6.8.0-51-generic

Phone:
Samsung Galaxy S24U 512gb black (Europe)

Output of srcpy -V verbose after launching, seeing the screen and making a few clicks on mouse and keyboard:

[server] INFO: Device: samsung SM-S928B (Android 14)
[server] ERROR: Could not invoke method
java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.addPrimaryClipChangedListener [interface android.content.IOnPrimaryClipChangedListener, class java.lang.String, class java.lang.String, int]
	at java.lang.Class.getMethod(Class.java:2950)
	at java.lang.Class.getMethod(Class.java:2450)
	at com.genymobile.scrcpy.wrappers.ClipboardManager.getAddPrimaryClipChangedListener(ClipboardManager.java:128)
	at com.genymobile.scrcpy.wrappers.ClipboardManager.addPrimaryClipChangedListener(ClipboardManager.java:138)
	at com.genymobile.scrcpy.Device.<init>(Device.java:100)
	at com.genymobile.scrcpy.Server.scrcpy(Server.java:64)
	at com.genymobile.scrcpy.Server.main(Server.java:334)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:395)
[server] ERROR: Exception on thread Thread[Thread-2,5,main]
java.lang.AssertionError: java.lang.reflect.InvocationTargetException
	at com.genymobile.scrcpy.wrappers.ServiceManager.getInputManager(ServiceManager.java:75)
	at com.genymobile.scrcpy.Device.injectEvent(Device.java:192)
	at com.genymobile.scrcpy.Device.injectKeyEvent(Device.java:203)
	at com.genymobile.scrcpy.Device.pressReleaseKeycode(Device.java:211)
	at com.genymobile.scrcpy.Device.pressReleaseKeycode(Device.java:216)
	at com.genymobile.scrcpy.Controller.control(Controller.java:66)
	at com.genymobile.scrcpy.Server$3.run(Server.java:132)
	at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Method.invoke(Native Method)
	at com.genymobile.scrcpy.wrappers.ServiceManager.getInputManager(ServiceManager.java:72)
	... 7 more
Caused by: java.lang.NullPointerException
	at java.util.Objects.requireNonNull(Objects.java:207)
	at android.hardware.input.InputManager.getInstance(InputManager.java:401)
	... 9 more
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
INFO: Renderer: opengl
INFO: OpenGL version: 3.1 Mesa 20.0.8
INFO: Trilinear filtering enabled
DEBUG: Using icon: /usr/local/share/icons/hicolor/256x256/apps/scrcpy.png
INFO: Initial texture: 1080x2336
DEBUG: Starting demuxer thread
[server] DEBUG: Using encoder: 'c2.qti.avc.encoder'
VERBOSE: input: touch [id=finger] down position=404,1354 pressure=1.000000 buttons=000001
VERBOSE: input: touch [id=finger] move position=408,1354 pressure=1.000000 buttons=000001
VERBOSE: input: touch [id=finger] up   position=408,1354 pressure=0.000000 buttons=000000
VERBOSE: input: key down code=62 repeat=0 meta=200000
VERBOSE: input: key up   code=62 repeat=0 meta=200000
DEBUG: User requested to quit
DEBUG: quit...
DEBUG: End of frames
DEBUG: Receiver stopped
WARN: Killing the server...
DEBUG: Server disconnected
DEBUG: Server terminated
rom1v

rom1v commented on Jan 29, 2025

@rom1v
Collaborator

@elfomze You're probably not running the latest version of scrcpy (currently 3.1).

elfomze

elfomze commented on Jan 29, 2025

@elfomze

@elfomze You're probably not running the latest version of scrcpy (currently 3.1).

Yep, my bad. I was running the old unofficial(?) snap version. 3.1 works 🙏

csa-x

csa-x commented on Feb 17, 2025

@csa-x

my simcard doesn't work, can't enable it in xiaomi device.

artillerymans

artillerymans commented on Apr 28, 2025

@artillerymans

Do you have to plug in the SIM and turn the switch on for this to work?
My status.

  1. Enabled USB security settings
    2.Device is not SIM inserted
    The result is not working
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mherweg@rom1v@Kein@truebit@eevmanu

        Issue actions

          Mouse clicks do not work · Issue #70 · Genymobile/scrcpy