From b09e3b2568496589c95acdb1fc6a36b32f586745 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Mon, 17 Jul 2017 17:57:25 -0700 Subject: [PATCH] Fix windows build An inconsistency was introduced by the independent merging of #211 with #213. --- src/platform/windows/events_loop.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/windows/events_loop.rs b/src/platform/windows/events_loop.rs index 48b56e75..d3acde0d 100644 --- a/src/platform/windows/events_loop.rs +++ b/src/platform/windows/events_loop.rs @@ -572,14 +572,14 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT, if x != 0.0 { send_event(Event::DeviceEvent { device_id: DEVICE_ID, - event: Motion { axis: AxisId(0), value: x } + event: Motion { axis: 0, value: x } }); } if y != 0.0 { send_event(Event::DeviceEvent { device_id: DEVICE_ID, - event: Motion { axis: AxisId(1), value: y } + event: Motion { axis: 1, value: y } }); } }