Skip to content

Support for read() operation on UInput - #46

Merged
gvalkov merged 1 commit into
gvalkov:masterfrom
paulo-raca:uinput-read
Feb 2, 2016
Merged

gvalkov merged 1 commit into
gvalkov:masterfrom
paulo-raca:uinput-read

Conversation

@paulo-raca

Copy link
Copy Markdown
Contributor

This is necessary to support devices with EV_LED and EV_SND (Maybe others?)

This is related to the issue #45 I opened a few days ago.

Please notice that the implementation of uinput.read() is the same as device.read().
I was a bit unconfortable with this until I notices that device.set_led() uses _uinput.write.

I believe that's OK, since both classes are perfectly symetric to each other

This is necessary to support devices with EV_LED and EV_SND
@paulo-raca
paulo-raca force-pushed the uinput-read branch 2 times, most recently from faf02bf to d599ca9 Compare February 1, 2016 00:58
gvalkov added a commit that referenced this pull request Feb 2, 2016
Support for read() operation on UInput
@gvalkov
gvalkov merged commit 96ffac8 into gvalkov:master Feb 2, 2016
@gvalkov

gvalkov commented Feb 2, 2016

Copy link
Copy Markdown
Owner

Looks good! Thank you for contributing.

Would you also consider adding a brief usage example to the tutorial tutorial page?

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