core: darwin: Add ability to detect and fire magnify event which is triggered by pinch to zoom on a trackpad
This commit is contained in:
parent
98c303aefc
commit
ff11fd6d4c
2 changed files with 23 additions and 0 deletions
|
|
@ -522,6 +522,10 @@ pub const Event = union(enum) {
|
|||
window_open: struct {
|
||||
window_id: mach.ObjectID,
|
||||
},
|
||||
magnify: struct {
|
||||
window_id: mach.ObjectID,
|
||||
magnification: f32,
|
||||
},
|
||||
focus_gained: struct {
|
||||
window_id: mach.ObjectID,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue