Skip to content

Feuerlabs/inpevt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exodev_inpevt

Linux input event port driver and erlang app

FOR EPX epx_nif.h { key_press, unicode(int)/atom(epx_nif.h), [ modifier (shift/graph/num/cap) ], key-code } When window opens (mapped).

application:start(inpevt). {ok, { device, P, _, _, _}} = inpevt:add_device("/dev/input/event17").

inpevt:subscribe(P, self()). spawn(fun() -> inpevt:subscribe(P, self()), receive X -> io:format("MSG:pn", [X]) after 2000 -> io:format("Exit\n", []), exit(normal) end end). inpevt:unsubscribe(P, self()).

About

Linux input event port driver and erlang app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published