-
Notifications
You must be signed in to change notification settings - Fork 1.2k
How to match AxisId? #230
Copy link
Copy link
Closed
Description
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 */ }`?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels