Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse clicks do not work on LG phones #18

Closed
Davidobot opened this issue Mar 9, 2018 · 13 comments
Closed

Mouse clicks do not work on LG phones #18

Davidobot opened this issue Mar 9, 2018 · 13 comments

Comments

@Davidobot
Copy link

Davidobot commented Mar 9, 2018

I am using the windows precompiled build on Windows 10 x64 and a phone running 7.0.

The program starts up fine and shows the screen perfectly, but whenever I left click on the screen with my mouse (on my PC) nothing happens.

Right-clicking does turn on the screen and all the shortcuts work. I do have two monitors on my PC, if that matters.

EDIT: I am using a LG G5 and this seems to be a common problem on LG devices?
Reddit thread

Touch data shows correct position, but pressure is always at 1.

@rom1v
Copy link
Collaborator

rom1v commented Mar 9, 2018

Touch data shows correct position, but pressure is always at 1.

I don't have an LG device here, so I can't test for now.

Indeed, the pressure is always 1. Maybe you could make it work by changing some values here?

@rom1v rom1v changed the title Mouse Clicks aren't Registered? Mouse clicks do not work on LG phones Mar 9, 2018
@jessb321
Copy link

Using an LG K10 here, same issue. Can also confirm pressure is always 1.

@DerekJedral
Copy link

Vysor also reads uses pressure, size as 1, so I don't think it's likely this is the issue (though I haven't had a chance to change the values yet to test)

@DerekJedral
Copy link

DerekJedral commented Mar 10, 2018

Nevermind, turns out I'm wrong. A pressure of under 1 seems to fix the issues (tried with a pressure of 0.9999f)

EDIT: I only tested this on my V20

@Cascador
Copy link

Hello,

Using an LG G4 here, left click doesn't work. Bug is confirmed, same computer, left click works with an Samsung Galaxy A5 2016.

@rom1v can you create a prebuilt server with pressure of 0.9999f ?

We can see the pressure by activating Show touch data (Settings, Developer options).

Tcho !

@rom1v
Copy link
Collaborator

rom1v commented Mar 10, 2018

If you have an LG device, could you confirm that #27 fixes the problem, please?

If you have another device, please confirm that it still works as before.

Thank you for your help.

@Cascador
Copy link

How do i proceed exactly ? I use the prebuilt server.

Thx, Tcho !

@rom1v
Copy link
Collaborator

rom1v commented Mar 10, 2018

@DerekJedral

Vysor also reads uses pressure, size as 1, so I don't think it's likely this is the issue

Do the clicks on these LG devices work on Vysor?

@Cascador
Copy link

Cascador commented Mar 10, 2018

#18 fixes the problem, left click works like a charm now on LG G4. Ok for Samsung too.

Tcho !

@rom1v
Copy link
Collaborator

rom1v commented Mar 11, 2018

@Cascador Thank you for your test. 👍

Could you also test with this change instead, please?

rom1v added a commit that referenced this issue Mar 11, 2018
Use default values (0) for some fields of PointerCoords so that mouse
clicks work correctly on LG devices.

Fixes <#18>.
@rom1v
Copy link
Collaborator

rom1v commented Mar 11, 2018

Fixed on dev branch.

@anandmishra007
Copy link

I can see the screen but keyboard and mouse are not working on my Redmi 5a

@rom1v
Copy link
Collaborator

rom1v commented Mar 31, 2018

Do you use v1.1?

See FAQ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants