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

RAWINPUTDEVICE has NULL hwndTarget, making inputs somewhat global and unreliable (Windows) #430

Open
sokorototo opened this issue May 9, 2024 · 1 comment

Comments

@sokorototo
Copy link

rawinputdevice.hwndTarget = NULL as _;

An easy fix would be to set the hwndTarget to hwnd from the above code. Or is there any reason for setting this to NULL?

@sokorototo sokorototo changed the title RAWINPUTDEVICE has NULL hwnd, making inputs somewhat global and unreliable RAWINPUTDEVICE has NULL hwnd, making inputs somewhat global and unreliable (Windows) May 9, 2024
@sokorototo sokorototo changed the title RAWINPUTDEVICE has NULL hwnd, making inputs somewhat global and unreliable (Windows) RAWINPUTDEVICE has NULL hwndTarget, making inputs somewhat global and unreliable (Windows) May 9, 2024
@not-fl3
Copy link
Owner

not-fl3 commented May 9, 2024

I do not have a windows machine to test, but if it does fix a problem for you - feel free to make a PR!

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