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

Comments

Projects
None yet
6 participants
@Davidobot

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

This comment has been minimized.

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 from Mouse Clicks aren't Registered? to Mouse clicks do not work on LG phones Mar 9, 2018

@willyb321

This comment has been minimized.

willyb321 commented Mar 10, 2018

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

@DerekJedral

This comment has been minimized.

DerekJedral commented Mar 10, 2018

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

This comment has been minimized.

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

This comment has been minimized.

Cascador commented Mar 10, 2018

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

This comment has been minimized.

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

This comment has been minimized.

Cascador commented Mar 10, 2018

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

Thx, Tcho !

@rom1v

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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

Fix mouse clicks on LG devices
Use default values (0) for some fields of PointerCoords so that mouse
clicks work correctly on LG devices.

Fixes <#18>.
@rom1v

This comment has been minimized.

Collaborator

rom1v commented Mar 11, 2018

Fixed on dev branch.

@anandmishra007

This comment has been minimized.

anandmishra007 commented Mar 31, 2018

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

@rom1v

This comment has been minimized.

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