Input device autodetect.