rust-windowing / rust-windowing/winit
Windows DeviceId always 0
Open
Nobody has claimed this yet.
DS - win32
S - enhancement
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 1.3k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 9
Description
I would like to support multiple keyboards on Windows. Currently all devices report a DeviceId(0), so it is not possible to distinguish them.
https://github.com/rust-windowing/winit/blob/master/src/platform_impl/windows/mod.rs#L65
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/platform_impl/windows/mod.rs around line 65, where Windows devices are reported with DeviceId(0). Trace how keyboard device identities are obtained there and determine how to distinguish multiple keyboards. Done means separate keyboards no longer all report the same DeviceId.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100