Skip to content

Conversation

@Osspial
Copy link
Contributor

@Osspial Osspial commented Dec 28, 2019

  • Tested on all platforms changed
  • Compilation warnings were addressed
  • cargo fmt has been run on this branch
  • cargo doc builds successfully
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users

Addresses #1151 on Windows, and changes ModifiersChanged to a tuple variant. This also addresses a couple assorted bugs that impact this feature's implementation:

  • VirtualKeyCodes weren't being implemented for the LWin and RWin keys.
  • DeviceEvents weren't getting emitted if you closed the most recent window Winit created.

I don't feel like spinning those out into separate PRs since they're important for this feature's functionality, so I'm submitting them here.

Fixes #1113

Previously, device events seem to have only been sent to one particular
window, and when that window was closed Winit would stop receiving
device events. This also allows users to create windowless event loops
that process device events - an intriguing idea, to say the least.
@chrisduerr chrisduerr mentioned this pull request Dec 29, 2019
@goddessfreya goddessfreya added DS - win32 Affects the Win32/Windows backend C - waiting on maintainer A maintainer must review this code labels Dec 29, 2019
@Osspial Osspial merged commit d9bda3e into rust-windowing:master Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C - waiting on maintainer A maintainer must review this code DS - win32 Affects the Win32/Windows backend

Development

Successfully merging this pull request may close these issues.

Windows: No DeviceEvent after closing last created window

2 participants