Add testing harness function to gamepad-test ns.
Add thread interruption check to timer input.
Factor to-string out into device-info.
Refactor some functions in read-loop to simplify body.