Skip to content

Commit 4feffc7

Browse files
Glfw joystick hat mapping (#2368)
* start of Glfw Joystick Hat mapping is not correct * Map LeftRown to DownLeft instead of UpRight --------- Co-authored-by: Alexander Kastler <[email protected]>
1 parent 544b647 commit 4feffc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Input/Silk.NET.Input.Glfw/GlfwJoystick.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public unsafe void Update()
9191
JoystickHats.RightUp => Position2D.UpRight,
9292
JoystickHats.RightDown => Position2D.DownRight,
9393
JoystickHats.LeftUp => Position2D.UpLeft,
94-
JoystickHats.LeftDown => Position2D.UpRight,
94+
JoystickHats.LeftDown => Position2D.DownLeft,
9595
_ => Position2D.Centered
9696
}
9797
);

0 commit comments

Comments
 (0)