Game Development Community

Detecting Controller Brand/Type

by Chris Jorgensen · in Hardware Issues · 07/24/2007 (11:49 am) · 0 replies

Has anyone written some code here that can detect what USB device has been plugged in? For example, I'd like to build-in functionality into my game such that if you plug in an Xbox 360 controller in one USB port, and a Logitech controller in another port, that the game could assign an appropriate icon to each input. That way if player one is using the 360 controller and P2 is using the Logitech, they both become instantly aware of what team is associated with what controller, rather than having them have to wiggle their controller around to guess who's who.

Thanks.

EDIT: Found what I was looking for. It just took searching under the right terms.

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9888