Linux’s uinput usage tutorial – Virtual Gamepad
uinput is really great kernel module for making virtual keyboards, mouses, gamepads, joysticks and others! But there is really small amount of examples, mainly for gamepad, so now I will show you how to make simple virtual gamepad with 16 buttons and two 2-axis thumbsticks with z-buttons!