Mercurial > remote-gamepad-server
view uinput.h @ 3:61bb81a9a440
Use saner defaults for the configuration.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 22 Feb 2015 18:09:04 +0100 |
parents | f362b20de51e |
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 */