mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Improve the documentation of DeviceEvent::Motion (#321)
This commit is contained in:
parent
159364bec3
commit
36058ab8e6
|
@ -110,6 +110,9 @@ pub enum WindowEvent {
|
||||||
pub enum DeviceEvent {
|
pub enum DeviceEvent {
|
||||||
Added,
|
Added,
|
||||||
Removed,
|
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 },
|
Motion { axis: AxisId, value: f64 },
|
||||||
Button { button: ButtonId, state: ElementState },
|
Button { button: ButtonId, state: ElementState },
|
||||||
Key(KeyboardInput),
|
Key(KeyboardInput),
|
||||||
|
|
Loading…
Reference in a new issue