Win32: Fix invalid hat bit mask being accepted

It is reportedly possible to get opposing directions of an XInput DPad
bit mask set simultaneously with some controllers.

This commit ensures that those values are not passed on to other parts
of GLFW.

This commit is based on the PR #2291 by @ PeterJohnson but with the
following changes:
 - moved XInput-specific special case to XInput implementation
 - attempt to preserve data by only masking out the invalid axis
 - admin (credit, changelog, commit message)

Closes #2291
This commit is contained in:
Peter Johnson
2023-03-07 23:03:06 -08:00
committed by Camilla Löwy
parent 9959dc69ca
commit 52405a9d59
3 changed files with 9 additions and 0 deletions

View File

@@ -102,6 +102,7 @@ video tutorials.
- JannikGM
- Erik S. V. Jansson
- jjYBdx4IL
- Peter Johnson
- Toni Jovanoski
- Arseny Kapoulkine
- Cem Karan