gvalkov / python-evdev

Python bindings for the Linux input subsystem
https://python-evdev.rtfd.org/
BSD 3-Clause "New" or "Revised" License
334 stars 112 forks source link

Example for resolve_ecodes is missing one input parameter #124

Closed Virusmater closed 4 years ago

Virusmater commented 4 years ago

I'm pretty new to python, so I don't feel like create pull request now since I'm not sure about it. For resolve_ecodes: def resolve_ecodes(ecode_dict, ecode_list, unknown='?'): there is an example:

resolve_ecodes([272, 273, 274]) with only one input. But I guess that it should have at least two.

Virusmater commented 4 years ago

can somebody confirm this? if so - will make a PR in a no time

gvalkov commented 4 years ago

Thanks for the catch. You are indeed right. I went ahead and fixed it in e0492245a3fed73cc586564e91ecd12421241274 .