Skip to content

Conversation

@kimimaru4000
Copy link
Contributor

This PR implements the Display trait for many enums to allow using to_string on them in user-facing code. Since EventCode and InputProp already implement Display, there's a new fmt_blacklist array that excludes anything within from implementing Display.

Python Script formatting changes are from the pycodestyle linter.

@kimimaru4000
Copy link
Contributor Author

Hi @ndesh26, when you have time can you take a look at this PR?

@ndesh26 ndesh26 merged commit 8c06285 into ndesh26:master Jan 19, 2025
7 checks passed
@ndesh26
Copy link
Owner

ndesh26 commented Jan 19, 2025

Thanks @kimimaru4000 for the pull request!

ndesh26 added a commit that referenced this pull request Jun 29, 2025
Changes:

* Bump evdev to 0.2.6
* Updated libevdev submodule and enums (#112)
* Implemented Sync for UInputDevice (#111)
* Implemented the Display trait for enums to enable to_string usage (#110)
* examples: Use enable instead of enable_event_*
* Update to bitflags2

Signed-off-by: Nayan Deshmukh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants