Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
An inconsistency was introduced by the independent merging of rust-windowing#211
with rust-windowing#213.
  • Loading branch information
Ralith committed Jul 18, 2017
1 parent 2e079fe commit b09e3b2
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 b09e3b2

Please sign in to comment.