Alessandro Mauri
296bd3fb79
indented cases and others
5 years ago
Alessandro Mauri
8d890b9e9e
coloured output
5 years ago
Alessandro Mauri
88308249bf
clarified const string
...
cahnged const char *ev_root to const char *evdev_root_dir
to clarufy the role of the variable
5 years ago
Alessandro Mauri
c0400929e4
moved dir scan logic to function
...
moved the logic behind choosing the right file desciptors into a
function allowing for later dynamic update
5 years ago
Alessandro Mauri
76dd08c465
added debug compilations
5 years ago
Alessandro Mauri
636bfe7a5e
reformat and better naming
5 years ago
Alessandro Mauri
58c01fb9d1
generalized die()
...
using fprintf() instead of fputs() to allow string concatenation, die()
now requires a error message which can be NULL and a error message which
will be passed to strerror(), this ensures that errno is fresh when we
use it
5 years ago
Alessandro Mauri
58aceac802
justified exit condition
5 years ago
Alessandro Mauri
922090060f
use switch for fork()
...
save two local variables and improve readability by a bit
5 years ago
Alessandro Mauri
45c52ecf20
removed trailing spaces
5 years ago
Alessandro Mauri
80bacaf775
wait before exit
5 years ago
Alessandro Mauri
678fef9358
fixed various bugs
5 years ago
Alessandro Mauri
e0a64d75c7
added test folder
5 years ago
Alessandro Mauri
f8b8f423f9
filter devices
...
only use devices that can give key events, this should lead to fewer
devices in the poll list and therefore boost performance a bit
5 years ago
Alessandro Mauri
9df5f5f8de
created makefile
5 years ago
Alessandro Mauri
352bd1f838
ignoring make products
5 years ago
Alessandro Mauri
b9bc3138d0
testing command execution
5 years ago
Alessandro Mauri
56024c6a4e
use epoll instead of poll on linux
5 years ago
Alessandro Mauri
1b017733cb
comments
5 years ago
Alessandro Mauri
1f007ab92e
implemented polling for multiple events
...
changelog:
* fixed small (1B) memory leak in pressBufferAdd
* fixed bug where SIGINT would not cause shut down
* implemented polling for every event inside /dev/input
* added more TODOs
5 years ago
Alessandro Mauri
59f8dd9842
before push
5 years ago
Alessandro Mauri
558d0360f9
removed gitignore trash
5 years ago
Alessandro Mauri
cca522c197
multi event handling prototype
5 years ago
Alessandro Mauri
4f3a2daddf
changed fopen to open
5 years ago
Alessandro Mauri
9ee3410975
first working prototype
5 years ago