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

Miss hid report when the application window is not focused #8

Closed
alex4me opened this issue Feb 25, 2020 · 1 comment
Closed

Miss hid report when the application window is not focused #8

alex4me opened this issue Feb 25, 2020 · 1 comment

Comments

@alex4me
Copy link

alex4me commented Feb 25, 2020

After switching to another applictaion, the hook method does not respose to the report due to the fact that the Handle in RAWINPUTDEVICE is a handle of current process.Is there any method to globally hook hid report?
Thanks.

@Slion
Copy link
Owner

Slion commented Jul 3, 2021

You have to use RIDEV_INPUTSINK or RIDEV_EXINPUTSINK depending of what you need:
See: https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-rawinputdevice

@Slion Slion closed this as completed Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants