[PATCH] dinput: Use heuristics to guess if a device is a gamepad or a joystick