| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
Easier to read `main` when this state isn't there.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
The typedef makes stuff a little more readable and introduces to the
typechecker that its size must be 32 elements.
Naming clarifications too.
The logic in the inner conditionals was often `fflush`ing even when
there had been no `printf`.
|
| |
|
|
|
| |
This also somewhat clarifies the relationships between the `char` arrays
and the pointers to them.
|
| |
|
|
| |
Simpler to read. Also makes it clearer what the default values are.
|
| |
|
|
| |
Less to remember when reading.
|
| |
|
|
| |
Easier on the eyes this way.
|
| | |
|
| |
|
|
|
|
|
|
| |
Makes the code easier to read: Less state to remember.
This also "accidentally" fixes a bug where `-help` would report the
wrong default value for the `-up` argument if `-up` had was set
previously in the same command.
|
| | |
|
| |
|
|
| |
This keeps source separate from history.
|
| |
|
|
|
| |
It's not just converting a keycode, but also the key's down-state, so
this is a better name. Also converted down-state arg to `bool`.
|
| |
|
|
|
|
| |
...with XKB's equivalent.
`-Wall` without warnings, yey.
|
| |
|
|
| |
Somewhat more readable this way.
|
| | |
|
| |
|
|
| |
Might as well expose that precision to the user.
|
| |
|
|
| |
`usleep` is removed from POSIX C11.
|
| |
|
|
| |
Inlined just like a macro, but has typechecking to prevent bloopers.
|
| |
|
|
| |
The `compile`-script already documents this sufficiently.
|
| |
|
|
| |
No need for TRUE/FALSE macros anymore.
|
| |
|
|
| |
Constants are type-checked; macros aren't.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Consistent 4-space everywhere. There were previously either 2 or 3,
sometimes funky.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Having taken all reasonable measures to reach the author, I'll rename to
avoid confusion.
|
| |
|
|
|
| |
Stop compiler complaining about implicit usleep with explicit include.
Neater variable declaration-initialisation on one line.
|
| |
|
|
| |
No need for brackets.
|
| |
|
|
|
|
| |
I only want to use this for naming which physical keys I press, so
having different output when modifiers are pressed would be bad. Also, I
can postprocess the data.
|
|
|
Straight from https://www.eigenheimstrasse.de/~ben/keyspeedapplet/xspy.c
|