You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble matching the AxisId struct, in order to process DeviceEvents. Is there something I'm missing here, or are these tuple-structs impossible to check for equality?
error: numeric fields in struct patterns are unstable (see issue #35626)
--> src/main.rs:68:40
|
68 | glutin::AxisId{0: 0} => app.yaw(value),
| ^^^^
error[E0532]: expected tuple struct/variant, found struct `glutin::AxisId`
--> src/main.rs:68:25
|
68 | glutin::AxisId(0) => app.yaw(value),
| ^^^^^^^^^^^^^^ did you mean `glutin::AxisId { /* fields */ }`?
Activity
Ralith commentedon Jul 16, 2017
See #211
Ralith commentedon Jul 23, 2017
Closing since #211 was merged--
AxisIdis now an alias foru32and can be matched as such.Merge next back to dev branch (rust-windowing#305)