Add functionality to easily emulate keyboard/mouse

uinput and/or xboxdrv don't want to cooperate, we will use keyboard/
mouse instead of joystick emulation.