getControl.c completed, now polls GPIO for button and joystick states.