From 0e48ad30d0477e0599f8caf0af2bde76f26c328f Mon Sep 17 00:00:00 2001 From: thefiddler Date: Sat, 10 May 2014 01:52:06 +0200 Subject: [PATCH] [Examples] Fixed Scroll.X/Y misreporting Scroll.X and Y are no longer swapped. --- Source/Examples/OpenTK/Test/GameWindowStates.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Examples/OpenTK/Test/GameWindowStates.cs b/Source/Examples/OpenTK/Test/GameWindowStates.cs index efb2d3bb..1977b12c 100644 --- a/Source/Examples/OpenTK/Test/GameWindowStates.cs +++ b/Source/Examples/OpenTK/Test/GameWindowStates.cs @@ -208,8 +208,8 @@ namespace Examples.Tests void MouseDeviceWheelHandler(object sender, MouseWheelEventArgs e) { - mousedevice_pos.Z = e.Mouse.Scroll.Y; - mousedevice_pos.W = e.Mouse.Scroll.X; + mousedevice_pos.Z = e.Mouse.Scroll.X; + mousedevice_pos.W = e.Mouse.Scroll.Y; mousedevice_state = e.Mouse; } @@ -241,8 +241,8 @@ namespace Examples.Tests void MouseWheelHandler(object sender, MouseWheelEventArgs e) { - mouse_pos.Z = e.Mouse.Scroll.Y; - mouse_pos.W = e.Mouse.Scroll.X; + mouse_pos.Z = e.Mouse.Scroll.X; + mouse_pos.W = e.Mouse.Scroll.Y; mouse_state = e.Mouse; }