Skip to content

Commit

Permalink
Merge pull request #234 from Ralith/fix-windows
Browse files Browse the repository at this point in the history
Fix windows build
  • Loading branch information
tomaka authored Jul 18, 2017
2 parents 2e079fe + b09e3b2 commit 2171918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/windows/events_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
});
}
}
Expand Down

0 comments on commit 2171918

Please sign in to comment.