Mercurial > remote-gamepad-server
view uinput.h @ 2:f362b20de51e
Remove trailing whitespaces.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 22 Feb 2015 18:03:26 +0100 |
parents | e70ea46d6073 |
children | eafcd170dc6d |
line wrap: on
line source
#ifndef UINPUT_H #define UINPUT_H #include <linux/input.h> #include <linux/uinput.h> #define DS_MIN_X 0 #define DS_MAX_X 255 #define DS_MIN_Y 0 #define DS_MAX_Y 191 /* Create a new uinput device Returns: device descriptor */ extern int init_uinput_device(void); /* Send an event into the uinput device Returns: TRUE, FALSE */ extern int do_uinput(int fd, unsigned short key, int pressed, unsigned short event_type); /* Synchonize events */ extern void flush_uinput(int fd); #endif /* UINPUT_H */