Eli Ribble
694ef2a466
Switch (badly) to C++
...
This is so I can use capnproto without adding a 3rd party compiler.
2024-07-30 19:44:32 -07:00
Eli Ribble
a88c7c654a
Use perror instead of our own crapily-implemented version.
...
Yay standards.
2024-07-30 19:44:32 -07:00
Eli Ribble
8985f990cb
Switch from storing total seconds to storing deltas.
...
This is conceptually simpler and makes the files easier to manipulate and
concatenate. It also avoids a bug where we would send a large negative
time when we loop for multiple playbacks.
2024-07-30 19:44:32 -07:00
Eli Ribble
7664f34de5
Drop events from the keyboard of type ...
...
Not sure what, can't remember, can't be bothered to look it up.
2024-07-30 19:44:32 -07:00
Eli Ribble
e65e442276
Add support for hotkey on capture.
...
We need this so that we can ensure to line up where our character is before we
get going.
2024-07-30 19:44:32 -07:00
Eli Ribble
61843f23c3
Add sleep logic in playback.
...
This also removes the "." between the seconds and nanos so that we don't mistake it
for a float, which it isn't.
2024-07-30 19:44:32 -07:00
Eli Ribble
4a0e7834b3
Flush stdout so our file gets written immediately
2024-07-30 19:44:32 -07:00
Eli Ribble
ccc44b676c
Show event content for keyboard.
2024-07-30 19:44:32 -07:00
Eli Ribble
54201de47b
Add epoll implementation to capture keyboard and mouse.
...
Yay, double capture!
2024-07-30 19:44:32 -07:00
Eli Ribble
ce83c74991
Add working beginnings of capture program.
...
Only does a single mouse at this point, but it's super fast and the resolution
is perfect.
2024-07-30 19:44:32 -07:00