diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2023-09-22 15:32:16 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2023-09-22 15:32:16 +0300 |
commit | 72c38b3e2c140aab10af4ba21283e18819e1dddf (patch) | |
tree | b79de0daa91f1441e5feb42a7a5a3f8916328732 /examples | |
parent | da322583bf0113e025de6a692ec6a735a0badc99 (diff) | |
download | applause2-72c38b3e2c140aab10af4ba21283e18819e1dddf.tar.gz |
EvdevStream:new() fixed opening device by name
* Iterating by /dev/input/eventX ids was too simplistic as there can easily be gaps.
* Instead, we now iterate the directory using opendir(), readdir() etc.
* Unfortunately, struct dirent might not be easily definable portably. (FIXME?)
* Also added EvdevStream.list(), so you now longer have to invoke evtest for finding out ids and names of HID devices
for EvdevStream:new().
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions