(
    vendor_id,
    product_id,
    mouse_profile,
    current_profile_name="default",
)
return MouseSettings(
        vendor_id,
        product_id,
        mouse_profile,
        current_profile_name,
    )
Returns a :class:`MouseSetting` instance.

    .. NOTE::

       A :class:`FakeMouseSettings` instance is returned when ``DEBUG_DRY``
       environment variable is set.

    :param int vendor_id: The device's vendor id (e.g. ``0x1038``).
    :param int product_id: The device's product id (e.g. ````0xbaad``).
    :param dict mouse_profile: The mouse profie (``devices/*``).
    :param str current_profile_name: The name of the active profile (optional,
                                     default: ``"default"``).

    :rtype MouseSettings, FakeMouseSettings
Returns a :class:`MouseSetting` instance.
Returns a : class : MouseSetting instance .
def get_mouse_settings(
    vendor_id,
    product_id,
    mouse_profile,
    current_profile_name="default",
):
    """Returns a :class:`MouseSetting` instance.

    .. NOTE::

       A :class:`FakeMouseSettings` instance is returned when ``DEBUG_DRY``
       environment variable is set.

    :param int vendor_id: The device's vendor id (e.g. ``0x1038``).
    :param int product_id: The device's product id (e.g. ````0xbaad``).
    :param dict mouse_profile: The mouse profie (``devices/*``).
    :param str current_profile_name: The name of the active profile (optional,
                                     default: ``"default"``).

    :rtype MouseSettings, FakeMouseSettings
    """
    if "RIVALCFG_DRY" in os.environ:
        return FakeMouseSettings(
            vendor_id,
            product_id,
            mouse_profile,
            current_profile_name,
        )
    return MouseSettings(
        vendor_id,
        product_id,
        mouse_profile,
        current_profile_name,
    )
def get_mouse_settings ( vendor_id , product_id , mouse_profile , current_profile_name = "default" , ) : if "RIVALCFG_DRY" in os . environ : return FakeMouseSettings ( vendor_id , product_id , mouse_profile , current_profile_name , ) return MouseSettings ( vendor_id , product_id , mouse_profile , current_profile_name , )