Moved input listen to input.h

Signed-off-by: Alberto Corona <albcoron@gmail.com>
Merge remote-tracking branch 'origin/testing'
Merging testing branch to master.