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

Increase hold of left click #16

Closed
rdavini opened this issue Mar 21, 2023 · 2 comments
Closed

Increase hold of left click #16

rdavini opened this issue Mar 21, 2023 · 2 comments
Labels

Comments

@rdavini
Copy link

rdavini commented Mar 21, 2023

Hello, thank you for making this project open source. I ran succefully in a raspberry pi zero w. However, I need to hold the left click for around 3-4 seconds. Could you please give a general instruction on how I can achieve this?

I was trying to add a sleep at the end of MouseDevice::SendRelative function inside the rasp_vusb_server but I'm having some trouble building this project. Could you please inform If I'm in the right path.

@stjeong
Copy link
Owner

stjeong commented Mar 21, 2023

First, sorry to answer without running the code.

I remember that... mouse click is divided into "DOWN" and "UP". Maybe... this code,

return new byte[] { 0x01, 0, 0 };

will return buffer for left-click "DOWN".

Again maybe, this code,

buf.AddRange(new byte[input.Length]);

will append buffer for "UP".

@rdavini
Copy link
Author

rdavini commented Mar 21, 2023

Ok thx alot.

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

No branches or pull requests

2 participants