Skip to content

Commit

Permalink
Glfw joystick hat mapping (#2368)
Browse files Browse the repository at this point in the history
* start of Glfw Joystick Hat mapping is not correct

* Map LeftRown to DownLeft instead of UpRight

---------

Co-authored-by: Alexander Kastler <[email protected]>
  • Loading branch information
Spacelord-XaN and AlexanderKastlerAmst authored Nov 27, 2024
1 parent 544b647 commit 4feffc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Input/Silk.NET.Input.Glfw/GlfwJoystick.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public unsafe void Update()
JoystickHats.RightUp => Position2D.UpRight,
JoystickHats.RightDown => Position2D.DownRight,
JoystickHats.LeftUp => Position2D.UpLeft,
JoystickHats.LeftDown => Position2D.UpRight,
JoystickHats.LeftDown => Position2D.DownLeft,
_ => Position2D.Centered
}
);
Expand Down

0 comments on commit 4feffc7

Please sign in to comment.