mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
@@ -572,14 +572,14 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT,
|
|||||||
if x != 0.0 {
|
if x != 0.0 {
|
||||||
send_event(Event::DeviceEvent {
|
send_event(Event::DeviceEvent {
|
||||||
device_id: DEVICE_ID,
|
device_id: DEVICE_ID,
|
||||||
event: Motion { axis: AxisId(0), value: x }
|
event: Motion { axis: 0, value: x }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if y != 0.0 {
|
if y != 0.0 {
|
||||||
send_event(Event::DeviceEvent {
|
send_event(Event::DeviceEvent {
|
||||||
device_id: DEVICE_ID,
|
device_id: DEVICE_ID,
|
||||||
event: Motion { axis: AxisId(1), value: y }
|
event: Motion { axis: 1, value: y }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user