tao
tao copied to clipboard
Add DeviceEventFilter on Windows
What kind of change does this PR introduce?
- [ ] Bugfix
- [x] Feature
- [ ] Docs
- [ ] New Binding issue #___
- [ ] Code style update
- [ ] Refactor
- [ ] Build-related changes
- [ ] Other, please describe:
Does this PR introduce a breaking change?
- [ ] Yes, and the changes were approved in issue #___
- [x] No
Checklist
- [ ] When resolving issues, they are referenced in the PR's title (e.g
fix: remove a typo, closes #___, #___) - [ ] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
- [ ] I have added a convincing reason for adding this feature, if necessary
Other information
winit just merged the device event filter for windows, https://github.com/rust-windowing/winit/pull/2409
Not sure that merely qualifying on win10 (winit's PR) is good enough, ngl:

That's the just the PR author testing, it should work fine for >=win7, I checked the MSDN docs for the used apis and they are all supported for win xp and newer (except one flag which was added in win vista)
winit just merged the device event filter for windows, rust-windowing/winit#2409
I'm a little busy on mobile support at the moment. I can resume this work once it's done. Or anyone is interested can take it too.
I can take this
@amrbashir I rebased the PR to resolve merge conflict. Might need your approve since this is my PR.