GamePad: Add Detect factory function.