uinput-mapper/read-device/read.c

27 lines
393 B
C
Raw Normal View History

2013-01-15 20:28:36 -05:00
#include <stdio.h>
#include <stdlib.h>
#include <linux/input.h>
#include <unistd.h>
#include <fcntl.h>
#define INPUT_PATH "/dev/input/by-id/usb-Logitech_USB-PS_2_Optical_Mouse-event-mouse"
int main (int argc, char** argv) {
int f;
(void)argc;
(void)argv;
f = open(INPUT_PATH, O_RDONLY);
if (f < 0) {
perror("open");
return 1;
}
return 0;
}