Open wilsonk opened 3 years ago
That is so weird, I have no idea why it happens 😕
Btw, I don't think this is a real back breaker of an issue, since it is sort of specialized on there being a 'mouse control' program (ie. VM or synergy or something) running to cause this.
(I wouldn't be gaming with this synergy app running and would have a mouse directly plugged into my machine anyways.)
And it appears to be Linux only. Here is the bevy mouse_input_event examples output on Win10:
Aug 23 05:25:43.086 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.086 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.086 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.086 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1264.6666, 137.33331) }
Aug 23 05:25:43.120 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.120 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.120 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.120 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.120 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.120 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.120 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.120 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.120 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.120 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1270.0, 132.66669) }
Aug 23 05:25:43.153 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.153 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.153 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.153 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.153 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1272.0, 130.66669) }
Aug 23 05:25:43.183 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.183 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1272.0, 129.33331) }
Aug 23 05:25:43.253 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.253 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.253 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1273.3334, 128.66669) }
Aug 23 05:25:43.287 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.287 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.287 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.287 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.287 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1276.0, 126.0) }
Aug 23 05:25:43.319 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.320 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.320 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1276.6666, 125.33331) }
Aug 23 05:25:43.353 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.353 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.353 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1278.0, 124.0) }
Aug 23 05:25:43.387 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.387 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:43.387 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:43.387 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1279.3334, 121.33331) }
Aug 23 05:25:43.420 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:44.354 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:47.390 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:48.658 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:48.692 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:48.757 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 3.0) }
Aug 23 05:25:48.792 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 4.0) }
Aug 23 05:25:48.792 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:48.923 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:48.923 INFO mouse_input_events: MouseMotion { delta: Vec2(10.0, -1.0) }
Aug 23 05:25:48.959 INFO mouse_input_events: MouseMotion { delta: Vec2(14.0, -1.0) }
Aug 23 05:25:48.959 INFO mouse_input_events: MouseMotion { delta: Vec2(15.0, -3.0) }
Aug 23 05:25:48.960 INFO mouse_input_events: MouseMotion { delta: Vec2(12.0, -5.0) }
Aug 23 05:25:48.960 INFO mouse_input_events: MouseMotion { delta: Vec2(12.0, -6.0) }
Aug 23 05:25:48.960 INFO mouse_input_events: MouseMotion { delta: Vec2(11.0, -7.0) }
Aug 23 05:25:48.992 INFO mouse_input_events: MouseMotion { delta: Vec2(8.0, -6.0) }
Aug 23 05:25:48.992 INFO mouse_input_events: MouseMotion { delta: Vec2(10.0, -7.0) }
Aug 23 05:25:48.992 INFO mouse_input_events: MouseMotion { delta: Vec2(7.0, -8.0) }
Aug 23 05:25:48.992 INFO mouse_input_events: MouseMotion { delta: Vec2(8.0, -6.0) }
Aug 23 05:25:49.026 INFO mouse_input_events: MouseMotion { delta: Vec2(8.0, -6.0) }
Aug 23 05:25:49.026 INFO mouse_input_events: MouseMotion { delta: Vec2(6.0, -6.0) }
Aug 23 05:25:49.026 INFO mouse_input_events: MouseMotion { delta: Vec2(4.0, -4.0) }
Aug 23 05:25:49.026 INFO mouse_input_events: MouseMotion { delta: Vec2(3.0, -4.0) }
Aug 23 05:25:49.059 INFO mouse_input_events: MouseMotion { delta: Vec2(2.0, -2.0) }
Aug 23 05:25:49.059 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, -3.0) }
Aug 23 05:25:49.060 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, -2.0) }
Aug 23 05:25:49.060 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, -2.0) }
Aug 23 05:25:52.695 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 2.0) }
Aug 23 05:25:52.695 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 4.0) }
Aug 23 05:25:52.730 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 4.0) }
Aug 23 05:25:52.730 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 7.0) }
Aug 23 05:25:52.730 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 8.0) }
Aug 23 05:25:52.730 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 7.0) }
Aug 23 05:25:52.764 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 8.0) }
Aug 23 05:25:52.764 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 6.0) }
Aug 23 05:25:52.764 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 5.0) }
Aug 23 05:25:52.764 INFO mouse_input_events: MouseMotion { delta: Vec2(-4.0, 5.0) }
Aug 23 05:25:52.764 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 4.0) }
Aug 23 05:25:52.794 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 2.0) }
Aug 23 05:25:52.795 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 2.0) }
Aug 23 05:25:52.795 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 0.0) }
Aug 23 05:25:52.830 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:52.929 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 0.0) }
Aug 23 05:25:52.963 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 0.0) }
Aug 23 05:25:52.963 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 1.0) }
Aug 23 05:25:52.963 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 0.0) }
Aug 23 05:25:52.963 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 0.0) }
Aug 23 05:25:52.993 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 1.0) }
Aug 23 05:25:52.993 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 1.0) }
Aug 23 05:25:52.993 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 1.0) }
Aug 23 05:25:52.993 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 1.0) }
Aug 23 05:25:53.030 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 2.0) }
Aug 23 05:25:53.030 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 1.0) }
Aug 23 05:25:53.030 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 2.0) }
Aug 23 05:25:53.030 INFO mouse_input_events: MouseMotion { delta: Vec2(-5.0, 3.0) }
Aug 23 05:25:53.030 INFO mouse_input_events: MouseMotion { delta: Vec2(-6.0, 3.0) }
Aug 23 05:25:53.063 INFO mouse_input_events: MouseMotion { delta: Vec2(-6.0, 2.0) }
Aug 23 05:25:53.063 INFO mouse_input_events: MouseMotion { delta: Vec2(-7.0, 4.0) }
Aug 23 05:25:53.063 INFO mouse_input_events: MouseMotion { delta: Vec2(-7.0, 2.0) }
Aug 23 05:25:53.063 INFO mouse_input_events: MouseMotion { delta: Vec2(-6.0, 3.0) }
Aug 23 05:25:53.096 INFO mouse_input_events: MouseMotion { delta: Vec2(-5.0, 1.0) }
Aug 23 05:25:53.096 INFO mouse_input_events: MouseMotion { delta: Vec2(-4.0, 1.0) }
Aug 23 05:25:53.096 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 0.0) }
Aug 23 05:25:53.096 INFO mouse_input_events: MouseMotion { delta: Vec2(-4.0, 2.0) }
Aug 23 05:25:53.129 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 1.0) }
Aug 23 05:25:53.130 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 2.0) }
Aug 23 05:25:53.130 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 1.0) }
Aug 23 05:25:53.130 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 1.0) }
Aug 23 05:25:53.130 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 1.0) }
Aug 23 05:25:53.159 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 1.0) }
Aug 23 05:25:53.159 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 2.0) }
Aug 23 05:25:53.159 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 0.0) }
Aug 23 05:25:53.163 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 1.0) }
Aug 23 05:25:53.197 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 1.0) }
Aug 23 05:25:53.197 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 0.0) }
Aug 23 05:25:53.197 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 1.0) }
Aug 23 05:25:53.197 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 0.0) }
Aug 23 05:25:53.230 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 1.0) }
Aug 23 05:25:53.230 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 1.0) }
Aug 23 05:25:53.231 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 1.0) }
Aug 23 05:25:53.231 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 0.0) }
Aug 23 05:25:53.263 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 1.0) }
Aug 23 05:25:53.264 INFO mouse_input_events: MouseMotion { delta: Vec2(-4.0, 0.0) }
Aug 23 05:25:53.264 INFO mouse_input_events: MouseMotion { delta: Vec2(-5.0, 1.0) }
Aug 23 05:25:53.264 INFO mouse_input_events: MouseMotion { delta: Vec2(-5.0, 0.0) }
Aug 23 05:25:53.264 INFO mouse_input_events: MouseMotion { delta: Vec2(-4.0, 1.0) }
Aug 23 05:25:53.296 INFO mouse_input_events: MouseMotion { delta: Vec2(-5.0, 0.0) }
Aug 23 05:25:53.296 INFO mouse_input_events: MouseMotion { delta: Vec2(-4.0, 0.0) }
Aug 23 05:25:53.296 INFO mouse_input_events: MouseMotion { delta: Vec2(-5.0, 0.0) }
Aug 23 05:25:53.296 INFO mouse_input_events: MouseMotion { delta: Vec2(-4.0, 0.0) }
Aug 23 05:25:53.327 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 0.0) }
Aug 23 05:25:53.327 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 0.0) }
Aug 23 05:25:53.327 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, -1.0) }
Aug 23 05:25:53.327 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 0.0) }
Aug 23 05:25:53.364 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, 0.0) }
Aug 23 05:25:53.364 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, 0.0) }
Aug 23 05:25:53.364 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, -1.0) }
Aug 23 05:25:53.364 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, -1.0) }
Aug 23 05:25:53.397 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, -1.0) }
Aug 23 05:25:53.397 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, -1.0) }
Aug 23 05:25:53.397 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, -3.0) }
Aug 23 05:25:53.397 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, -4.0) }
Aug 23 05:25:53.397 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, -4.0) }
Aug 23 05:25:53.397 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1262.0, 104.66669) }
Aug 23 05:25:53.430 INFO mouse_input_events: MouseMotion { delta: Vec2(-4.0, -5.0) }
Aug 23 05:25:53.430 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, -6.0) }
Aug 23 05:25:53.430 INFO mouse_input_events: MouseMotion { delta: Vec2(-5.0, -5.0) }
Aug 23 05:25:53.430 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, -5.0) }
Aug 23 05:25:53.430 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1233.3334, 145.33331) }
Aug 23 05:25:53.463 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, -4.0) }
Aug 23 05:25:53.464 INFO mouse_input_events: MouseMotion { delta: Vec2(-3.0, -4.0) }
Aug 23 05:25:53.464 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, -2.0) }
Aug 23 05:25:53.464 INFO mouse_input_events: MouseMotion { delta: Vec2(-2.0, -3.0) }
Aug 23 05:25:53.464 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1216.6666, 166.66669) }
Aug 23 05:25:53.497 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, -2.0) }
Aug 23 05:25:53.497 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, -2.0) }
Aug 23 05:25:53.497 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, -1.0) }
Aug 23 05:25:53.497 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1215.3334, 173.33331) }
Aug 23 05:25:54.431 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:54.431 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:54.431 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:54.431 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1215.3334, 170.0) }
Aug 23 05:25:54.496 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:54.496 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1215.3334, 169.33331) }
Aug 23 05:25:54.531 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:54.532 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1215.3334, 168.0) }
Aug 23 05:25:54.664 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:54.664 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1215.3334, 166.66669) }
Aug 23 05:25:54.731 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 4.0) }
Aug 23 05:25:54.732 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 5.0) }
Aug 23 05:25:54.732 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 3.0) }
Aug 23 05:25:54.732 INFO mouse_input_events: MouseMotion { delta: Vec2(-1.0, 3.0) }
Aug 23 05:25:54.732 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1214.0, 144.66669) }
Aug 23 05:25:54.765 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 2.0) }
Aug 23 05:25:54.765 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:54.765 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, 1.0) }
Aug 23 05:25:54.765 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1214.0, 140.0) }
Aug 23 05:25:54.964 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, 0.0) }
Aug 23 05:25:54.965 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1214.6666, 140.0) }
Aug 23 05:26:10.814 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, -1.0) }
Aug 23 05:26:10.814 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, -3.0) }
Aug 23 05:26:10.814 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, -2.0) }
Aug 23 05:26:10.814 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, -3.0) }
Aug 23 05:26:10.814 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1216.0, 151.33331) }
Aug 23 05:26:10.849 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, -5.0) }
Aug 23 05:26:10.849 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, -3.0) }
Aug 23 05:26:10.849 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, -5.0) }
Aug 23 05:26:10.849 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, -6.0) }
Aug 23 05:26:10.849 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1217.3334, 182.66669) }
Aug 23 05:26:10.881 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, -5.0) }
Aug 23 05:26:10.881 INFO mouse_input_events: MouseMotion { delta: Vec2(0.0, -7.0) }
Aug 23 05:26:10.882 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, -7.0) }
Aug 23 05:26:10.882 INFO mouse_input_events: MouseMotion { delta: Vec2(1.0, -8.0) }
Aug 23 05:26:10.882 INFO mouse_input_events: CursorMoved { id: WindowId(00000000-0000-0000-0000-000000000000), position: Vec2(1223.3334, 234.66666) }
You can see there is no real difference in the deltas, and the position vec2's are also consistent, even though I used both types of mouse during this test. Maybe someone can try a Win10 guest inside a VM to see if that works?
This is an issue with winit/glutin. See this issue: https://github.com/rust-windowing/winit/issues/946
Hi, my discord username is roman205. I've had the same issue using VMWare Workstation 16 Player with Windows 10 host. My VM details are:
╰─ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal
╰─ rustc --version rustc 1.54.0 (a178d0322 2021-07-26)
╰─ rustup --version rustup 1.24.3 (ce5817a94 2021-05-31) info: This is the version for the rustup toolchain manager, not the rustc compiler. info: The currently active rustc version is rustc 1.54.0 (a178d0322 2021-07-26)
╰─ cargo --version cargo 1.54.0 (5ae8d74b3 2021-06-22)
I followed https://superuser.com/a/1406565 to disable the mouse integration. After addeding: mks.gamingMouse.policy = "gaming" to my VM vmx file, the issue got resolved.
There is usually no way to workaround this from the program itself. Instead, the documentation should instruct to disable mouse integration or absolute mouse coordinates. This is also an issue if you try to use a graphics tablet to play a game that captures the mouse :slightly_smiling_face:
@Calinou Turning off mouse integration can be done with VMWare, as stated above...and I also saw that VBox has a similar option to turn off mouse integration (qemu must have it also, as it has pretty much EVERY option). So, yes, I think a note in the README or something about turning off mouse integration if you are using a VM is a good idea.
Now, how does one turn of mouse integration when running synergy/barrier? I am not aware of a way to do this. How does one turn off mouse integration when running a tablet, unless that is programmatically? And/or how does one turn off absolute coordinates on a tablet?
P.S. By the way, this is only an issue on Linux desktop because of X11...Mac/Win10 desktop work fine. So instead of programmatically dealing with the X11 discrepancy we should turn off mouse integration for every OS? Not sure what your suggestion is exactly.
P.P.S The SDL library, at the least, deals with this issue programmatically (https://github.com/spurious/SDL-mirror/blob/d3d9a9ddd00f710835a3c133d6c196b7c4bd1792/src/events/SDL_mouse.c#L302). I think glutin/winit actually comment on this fact also (https://github.com/rust-windowing/winit/issues/946)
When I run the 3rd_person demo on Linux the scene just spins around rapidly with my mouse movements. I use a program called Synergy by Symless, so that I can just use one mouse on Mac/Win/Lin, and I thought maybe this was the problem. I have a mouse directly attached on the linux machine and it works fine with the 3rd_person example. I also noticed that the scene moves even when my mouse is outside the rg3d window (is this intended behavior?).
Then another user (roman205 on discord) mentioned he had the same problem with a Ubuntu Linux guest VM on a Win10 host! So some sort of bad interpretation is happening when using a vm or other 'mouse control' program, I guess?
Trying to look deeper into this, I compiled some bevy examples (because bevy uses winit also), particularly the mouse_input_events example. The bevy program also captures events outside the examples window but there are some differences with the captured info. Example:
So at the start (outside the bevy window) there are captured events when using the directly attached mouse, then in the middle of that output I use the 'symless' mouse. Notice the different coords! I would postulate that this difference in coords is the cause of the spinning scene in the 3rd_person example, assuming you are using the Deltas!?!
I also captured this from INSIDE the window, while using both mice:
The Deltas change again when using the 'symless' mouse, but the position vec2 seems consistent. Perhaps only working off of that position vector, while inside the rg3d window is a solution? Or perhaps you can see a solution with this information @mrDIMAS ?