Upon further consideration I think it's best to just add all possible device
types and let the user try to use whatever they might have. Even if it can't be mapped properly to something that will work it's still worth trying and shouldn't cause any major problems (other than just not being able to play with some weird devices, like lightguns for example).
This commit is contained in:
@@ -31,7 +31,12 @@ static BOOL CALLBACK EnumDevicesCallback( const DIDEVICEINSTANCE *pdidInstance,
|
||||
{
|
||||
case DI8DEVTYPE_JOYSTICK:
|
||||
case DI8DEVTYPE_GAMEPAD:
|
||||
case DI8DEVTYPE_DRIVING:
|
||||
case DI8DEVTYPE_FLIGHT:
|
||||
case DI8DEVTYPE_1STPERSON:
|
||||
case DI8DEVTYPE_DEVICECTRL:
|
||||
case DI8DEVTYPE_SCREENPOINTER:
|
||||
case DI8DEVTYPE_REMOTE:
|
||||
case DI8DEVTYPE_SUPPLEMENTAL:
|
||||
{
|
||||
device.type = device.JOYSTICK;
|
||||
|
||||
Reference in New Issue
Block a user