diff --git a/.gitmodules b/.gitmodules index 2c9dc6b..47a1f94 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,9 @@ [submodule "cmake"] path = cmake url = git://git.nerdcruft.net/cmake +[submodule "cruft/util"] + path = cruft/util + url = git://git.nerdcruft.net/libcruft-util.git +[submodule "cruft/evdev"] + path = cruft/evdev + url = git://git.nerdcruft.net/libcruft-evdev.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 45bca33..cfdb1a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,11 @@ project(quimby list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) include (nc) +add_subdirectory(cruft/util) +add_subdirectory(cruft/evdev) + +add_executable(relay relay.cpp) + install( FILES systemd/system/quimby.service diff --git a/cruft/util b/cruft/util new file mode 160000 index 0000000..ee96cbb --- /dev/null +++ b/cruft/util @@ -0,0 +1 @@ +Subproject commit ee96cbb5daa745d0cae642ed36a913a14f12dee3 diff --git a/relay.cpp b/relay.cpp new file mode 100644 index 0000000..b53a5cc --- /dev/null +++ b/relay.cpp @@ -0,0 +1,15 @@ + + + +struct input_event { + struct timeval time; + unsigned short type; + unsigned short code; + unsigned int value; +}; + + +int main () +{ + +} \ No newline at end of file