thank you!
Type: Posts; User: freemind
thank you!
yes, the problem was I've launched the program with user privileges, so it couldn't open the device
with sudo this snippet works
sorry, these are my first steps in C and linux programming)
i'm just trying to run the example in kernel manual
int fd = open("/dev/uinput", O_WRONLY | O_NONBLOCK);
if (fd == -1) {
...
hi, i'm trying to emulate keypress with uinput kernel module.
i've found this code snippet in documentation 7. uinput module — The Linux Kernel documentation
#include <linux/uinput.h>
void...