jeremyletang / rust-sfml

SFML bindings for Rust
Other
638 stars 88 forks source link

Added serializer for SFML keys, buttons, and mouse wheel #279

Closed dogunbound closed 2 years ago

dogunbound commented 2 years ago

I was trying to add custom control bindings for my app. I noticed that if the Key, Button, and MouseWheel enums derived Serializer and Deserializer, it would help ALOT

I understand if you don't accept this PR. This is quite niche, and I could do a custom serializer for this.

crumblingstatue commented 2 years ago

I'm merging this, with the caveat that I reserve the right to change these types in a way that breaks backwards compatibility with previously serialized data. No backwards compatibility guarantees for serialized rust-sfml types.