libsuinput - Simple C-API to the Linux uinput-system

Date: 2010-01-16

Contents

Description

Uinput allows attaching user-space device drivers into the Linux kernel. As magnificient as the uinput-system is, it is pretty low level from the application developers perspective. Libsuinput provides a higher level API and hides many devilish details.

General information

Requirements

Recommendations

Example usage

Move pointer and then generate a left mouse button click:

#include <suinput.h>

int main(void)
{
  struct suinput_driver *driver = suinput_open(NULL, NULL);
  suinput_move_pointer(driver, 100, 100);
  suinput_click(driver, BTN_LEFT);
  suinput_close(driver);
  return 0;
}

Downloading

Installing

The install-procedure adheres the "standard":

./configure --prefix=/usr/local
make && sudo make install

Bug reporting

Report bugs by sending email to tuos@codegrove.org or by opening an issue at http://github.com/tuos/libsuinput/issues .