Make sure that all the arguments passed are indeed DigitalInOut. This avoids crashes when the users pass something else.
gamepad