NicoHood / HID

Bring enhanced HID functions to your Arduino!
http://www.nicohood.de
MIT License
2.37k stars 409 forks source link

Namespaced enums #372

Open vladimir-aubrecht opened 2 years ago

vladimir-aubrecht commented 2 years ago

Hi,

any plans to introduce namespaces for this project? The reason for taht is problem with enums poluting global namespace which is an issue when mixing different libraries & MCUs, which are not compatible with this library.

I think I can help with pull request if you'd like this change ... 😊

NicoHood commented 2 years ago

That might be a good idea, yes. But what about existing user code? Also the upstream arduino IDE uses the same enum values sometimes. You can make a PR to show how it would look like.