kde-lockscreen-suspend-display/keypressdetector/evdev.h

15 lines
240 B
C

#pragma once
#include <linux/input.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define NUM_EVENTS 128
int block_until_keypress(const char* keyboardPath);