summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index f0633f6..17c311d 100644
--- a/main.c
+++ b/main.c
@@ -228,7 +228,7 @@ static void setup_output_device(int fd)
* created, to pass key events, in this case the space key.
*/
ioctl(fd, UI_SET_EVBIT, EV_KEY);
- for (ssize_t i = 1; i < MAPPINGS_NUM; i++) {
+ for (ssize_t i = 0; i < MAPPINGS_NUM; i++) {
if (-1 == ioctl(fd, UI_SET_KEYBIT, g_mapping[i].code)) {
fprintf(
stderr,