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

15 lines
240 B
C
Raw Normal View History

#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);