input: get rid of polling (close #287)

@mishanga @veged @narqo