Add MouseEntered/MouseLeft for Windows, X11, Wayland, & Cocoa
This commit is contained in:
parent
705f5f50fa
commit
db45e58390
5 changed files with 33 additions and 11 deletions
|
|
@ -30,6 +30,12 @@ pub enum Event {
|
|||
/// The parameter are the (x,y) coords in pixels relative to the top-left corner of the window.
|
||||
MouseMoved(i32, i32),
|
||||
|
||||
/// The cursor has entered the window.
|
||||
MouseEntered,
|
||||
|
||||
/// The cursor has left the window.
|
||||
MouseLeft,
|
||||
|
||||
/// A mouse wheel movement or touchpad scroll occurred.
|
||||
MouseWheel(MouseScrollDelta, TouchPhase),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue