Fix windows build

An inconsistency was introduced by the independent merging of #211
with #213.
This commit is contained in:
Benjamin Saunders 2017-07-17 17:57:25 -07:00
parent 2e079fe9a2
commit b09e3b2568

View file

@ -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 }
});
}
}