-
-
Notifications
You must be signed in to change notification settings - Fork 13
Added raw mouse button input #21
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
Conversation
Ok, so I've tried testing like this: RawMouseButtons.Start(WorkInBackground);
RawMouseButtons.OnMouseUp += LogKeyUp;
RawMouseButtons.OnMouseDown += LogKeyDown; But it doesn't seem to work. Eg, when I click LMB it logs key up twice. Also, please format and clean the code and try to follow the style used in the other files. |
Thank you for the cleanup! I've also refactored it a bit. While it's working for mouse buttons now, I've noticed that when |
It probably has todo with the thread id, of th hook or the hook id. we maybe instead of hooking all processes only should hook the visible ones maybe there is some interference or something il will test it once im back home |
Sorry, but judging by the above 3 commits it doesn't look like you understand what you're doing. Both keyboard and mouse detection was working correctly, but you just broke it with changes that doesn't make any sense. I'll have to close this PR, as I can't spend more time on this. Working version before the 3 changes is in https://github.com/Elringus/UnityRawInput/tree/feat/mouse (in case anyone would like to suggest a fix for the slow cursor) |
Thanks for your kind and fast response im having a bit of trouble with github so i had to create a new pullrequest!
If you were to accept this pullrequest would you be so kind and close the issue #19.
He posted this issue on a bounty hunting site so i can get rewarded! ^^