input-linux: better capability checks, merge input_linux_event_{mouse, keyboard}