Merge pull request #234 from Ralith/fix-windows

Fix windows build
This commit is contained in:
tomaka 2017-07-18 07:36:41 +02:00 committed by GitHub
commit 2171918023

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