Moving this into hardware/, since we already have an input_wait_for_change() function there. --Nmlgc
The pascal calling convention for TH03's input mode functions actually sort of matters, since we have this nice function pointer type that expects pascal.