Commit graph

2 commits

Author SHA1 Message Date
Nicolas Koch ab0f260115 Update PR to bring it more in line with VirtualDevice::emit 2021-12-06 09:59:50 +01:00
Nicolas Koch 16810308e4 Add Device::send_event and RawDevice::send_event.
Some devices (such as keyboards) support writing events through event nodes to
turn LEDs off and on, play sound effects or play ff effects.
This commits adds the appropriate methods in the public API of the crate.

I also added an example to showcase the new functionality.
2021-12-05 19:25:15 +01:00