53 lines
730 B
INI
53 lines
730 B
INI
enums = {
|
|
namespaces: ["stdin", "clickpad"];
|
|
};
|
|
|
|
predicates = {
|
|
is_evdev = {
|
|
type = "code_ns";
|
|
min = "namespaces.clickpad";
|
|
max = "namespaces.clickpad";
|
|
};
|
|
key_event = {
|
|
type = "and";
|
|
args = (
|
|
"is_evdev",
|
|
{
|
|
type = "code_major";
|
|
min = "event_type.KEY";
|
|
max = "event_type.KEY";
|
|
}
|
|
);
|
|
};
|
|
};
|
|
|
|
nodes = {
|
|
stdin = {
|
|
type = "getchar";
|
|
options = {
|
|
namespace = "namespaces.stdin";
|
|
};
|
|
};
|
|
print = {
|
|
type = "print";
|
|
options = {};
|
|
};
|
|
clickpad = {
|
|
type = "evdev";
|
|
options = {
|
|
file = "/dev/input/event7";
|
|
namespace = "namespaces.clickpad";
|
|
};
|
|
};
|
|
};
|
|
|
|
channels = ({
|
|
from: ("stdin", 0);
|
|
to: ("print", 0);
|
|
}, {
|
|
from: ("clickpad", 0);
|
|
to: ("print", 1);
|
|
});
|
|
|
|
// vim: ft=libconfig
|