Auto iterate through configuration inputs

Allows user to map all inputs seamlessly without having to
click on each button.

Also increased button timeout to 5 seconds from 1.5 due to pita.

Motion controls are not included since they will be special cases.
No space after the opening { here (to be consistent with the line just above).