mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Merge pull request #113 from samdphillips/mac-middle-mouse-button
Add middle mouse button events for MacOS.
This commit is contained in:
commit
41ac24b107
|
@ -737,6 +737,8 @@ unsafe fn NSEventToEvent(window: &Window, nsevent: id) -> Option<Event> {
|
|||
appkit::NSLeftMouseUp => { Some(Event::MouseInput(ElementState::Released, MouseButton::Left)) },
|
||||
appkit::NSRightMouseDown => { Some(Event::MouseInput(ElementState::Pressed, MouseButton::Right)) },
|
||||
appkit::NSRightMouseUp => { Some(Event::MouseInput(ElementState::Released, MouseButton::Right)) },
|
||||
appkit::NSOtherMouseDown => { Some(Event::MouseInput(ElementState::Pressed, MouseButton::Middle)) },
|
||||
appkit::NSOtherMouseUp => { Some(Event::MouseInput(ElementState::Released, MouseButton::Middle)) },
|
||||
appkit::NSMouseEntered => { Some(Event::MouseEntered) },
|
||||
appkit::NSMouseExited => { Some(Event::MouseLeft) },
|
||||
appkit::NSMouseMoved |
|
||||
|
|
Loading…
Reference in a new issue