How to Generate Keyboard Input Using libevdev in C
问题 I would like to write an application to generate keyboard input (i.e. to the system it would look just like a button on the keyboard had been pressed) for a Linux system. I would like to use C and xdotools are not an option. Libevdev looks promising, but so far I haven't been able to get it to work. First, can libevdev do what I want? Most of the documentation is focused on reading the incoming input and outputting it, but the API does feature a function to "Post an event through the uinput