Handle zero/negative screen heights.
Move input test into input package.