/// <summary> /// Removes the custom-defined <see cref = "Mapping" />s from this <see cref = "Device" /> /// OR from its interface. /// </summary> /// <param name = "scope">The <see cref = "JoystickMapScope" /> from which to remove all custom-defined <see cref = "Mapping" />s.</param> /// <seealso cref = "MappingCollection" /> /// <seealso cref = "Mapping" /> /// <seealso cref = "JoystickMapScope" /> public void RemoveMappings(JoystickMapScope scope) { new DeviceManager().RemoveDeviceMappings(LptNum, DeviceType, UnitNum, scope); }
/// <summary> /// Associates a set of <see cref = "Mapping" />s (a <see cref = "MappingCollection" />) with a specific PPJoy <see cref = "Device" /> in a specific <see cref = "JoystickMapScope" />. /// </summary> /// <param name = "scope">The <see cref = "JoystickMapScope" /> /// in which to store the new custom <see cref = "Mapping" />s.</param> /// <param name = "newMappings">A <see cref = "MappingCollection" /> object /// containing the new <see cref = "Mapping" />s to associate with /// the specified <paramref name = "scope" />.</param> /// <seealso cref = "MappingCollection" /> /// <seealso cref = "Mapping" /> /// <seealso cref = "JoystickMapScope" /> public void SetMappings(JoystickMapScope scope, MappingCollection newMappings) { new DeviceManager().SetDeviceMappings(LptNum, DeviceType, UnitNum, scope, newMappings); }
/// <summary> /// Gets a <see cref = "MappingCollection" /> representing the controls /// defined on this <see cref = "Device" />, or representing the controls /// defined in this <see cref = "Device" />'s interface. /// </summary> /// <param name = "scope">Scope from which to retrive the <see cref = "MappingCollection" />.</param> /// <returns>If the <paramref name = "scope" /> argument is set to /// <see cref = "JoystickMapScope.Interface" />, then this method returns /// a <see cref = "MappingCollection" /> object /// representing the controls defined in this <see cref = "Device" />'s /// interface. /// <para /> /// If the <paramref name = "scope" /> argument is set to /// <see cref = "JoystickMapScope.Device" />, then this method returns /// a <see cref = "MappingCollection" /> object /// representing the controls defined directly on this <see cref = "Device" /> itself. /// </returns> /// <seealso cref = "Mapping" /> /// <seealso cref = "MappingCollection" /> /// <seealso cref = "JoystickMapScope" /> public MappingCollection GetMappings(JoystickMapScope scope) { return(new DeviceManager().GetDeviceMappings(LptNum, DeviceType, UnitNum, scope)); }