Improve the documentation of DeviceEvent::Motion (#321)

This commit is contained in:
Bruno Ploumhans 2017-10-28 12:33:51 +02:00 committed by Victor Berger
parent 159364bec3
commit 36058ab8e6

View file

@ -110,6 +110,9 @@ pub enum WindowEvent {
pub enum DeviceEvent {
Added,
Removed,
/// Mouse devices yield `Motion` events where axis `0` is horizontal and axis `1` is vertical.
/// A positive value means a movement to the right or the bottom, depending on the axis.
/// Such events will be sent even if the mouse is in a corner of the screen.
Motion { axis: AxisId, value: f64 },
Button { button: ButtonId, state: ElementState },
Key(KeyboardInput),