-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to create events out of string names? #1
Comments
The closest functionality currently is enabling the |
Thanks for the hint! I'm new to Rust and didn't know about serde yet. Sorry if that is common knowledge. That actually works better than I could've expected, aside from the minor gripe of having to follow your enum names instead of conventional linux constant names. Feel free to close that if you don't plan to address that though. And thanks for a nice library! If you'd like to see how a newbie handles your crate with no examples and no prior Rust knowledge, you may check out https://github.com/t184256/irwir |
I'll leave it open, as it's reasonable to offer this in some way, considering that libevdev offers similar functionality via And good job so far! My apologies for the lack of examples and the library being rough right now. The intention is that the The only real example or use of the library that I know of right now is this, which is far from a good example, and most of it is plumbing to hook it up to tokio so it can be used async. |
Neither of them is particularly good-looking in a config, but the first are as canonical as it gets, and that's something. Also, your shortening is nice, but a bit inconsistent:
Hey, I didn't say it was bad and it wasn't! I'm pretty sure a seasoned Rustacean would find it easy to use. And whatever minor friction I had from the low-level stuff sure beats trying to marry evdev and uinput on my own.
Man, you're doing the God's job! Shame I don't have VFIO setup anymore to test it, that sounds super sweet.
Great, I'd consider it to be an invitation to open other non-issues like this as I progress further. |
Agreed.
Yeah, I've been meaning to fix that... I think I just didn't want to deal with changing the keys that started with digits at the time ._. |
I've taken care of the redundant |
It doesn't work for |
I like the coverage of both evdev and uinput functionality in one package, but I miss a way to create events from names akin to evdev_rs::enums::EventType::from_str. Is there one?
The text was updated successfully, but these errors were encountered: