input_event:Elixir与Linux输入事件的接口devinputevent *

时间:2021-05-03 09:25:07
【文件属性】:
文件名称:input_event:Elixir与Linux输入事件的接口devinputevent *
文件大小:25KB
文件格式:ZIP
更新时间:2021-05-03 09:25:07
Elixir InputEvent Elixir与Linux输入事件设备的接口。 使用input_event ,您可以 找出连接了哪些键盘,操纵杆,鼠标,触摸屏等 获取有关它们可以产生哪些事件的信息 获取发送给您的解码事件 该库旨在与Nerves一起使用。 如果您正在运行桌面Linux发行版,那么它仍然可以工作,但是您可能希望使用更高级别的API来接收事件。 用法 InputEvent可用于监视/dev/input/event*设备,并将解码后的数据报告给父进程。 首先查找要监视的设备: iex > InputEvent . enumerate [ { " /dev/input/event0 " , % InputEvent . Info { bus: 0 , input_event_version: " 1.0.1 " , name: " FT5406 m
【文件预览】:
input_event-main
----mix.exs(2KB)
----.formatter.exs(97B)
----test()
--------input_event_test.exs(71B)
--------input_event()
--------test_helper.exs(15B)
----mix.lock(2KB)
----LICENSE(10KB)
----src()
--------input_event.c(7KB)
----.gitignore(632B)
----CHANGELOG.md(1001B)
----lib()
--------input_event()
--------input_event.ex(4KB)
----.circleci()
--------config.yml(2KB)
----Makefile(1KB)
----README.md(8KB)

网友评论