[Examples] Fixed Scroll.X/Y misreporting

Scroll.X and Y are no longer swapped.
This commit is contained in:
thefiddler 2014-05-10 01:52:06 +02:00
parent d7e0373852
commit 0e48ad30d0

View file

@ -208,8 +208,8 @@ namespace Examples.Tests
void MouseDeviceWheelHandler(object sender, MouseWheelEventArgs e) void MouseDeviceWheelHandler(object sender, MouseWheelEventArgs e)
{ {
mousedevice_pos.Z = e.Mouse.Scroll.Y; mousedevice_pos.Z = e.Mouse.Scroll.X;
mousedevice_pos.W = e.Mouse.Scroll.X; mousedevice_pos.W = e.Mouse.Scroll.Y;
mousedevice_state = e.Mouse; mousedevice_state = e.Mouse;
} }
@ -241,8 +241,8 @@ namespace Examples.Tests
void MouseWheelHandler(object sender, MouseWheelEventArgs e) void MouseWheelHandler(object sender, MouseWheelEventArgs e)
{ {
mouse_pos.Z = e.Mouse.Scroll.Y; mouse_pos.Z = e.Mouse.Scroll.X;
mouse_pos.W = e.Mouse.Scroll.X; mouse_pos.W = e.Mouse.Scroll.Y;
mouse_state = e.Mouse; mouse_state = e.Mouse;
} }