HidNumericControl HidNumericControl HidNumericControl HidNumericControl Class

Definition

Represents a numeric control on a HID device that returns a range of values. An example would be the volume control on a speaker.

public : sealed class HidNumericControl : IHidNumericControlpublic sealed class HidNumericControl : IHidNumericControlPublic NotInheritable Class HidNumericControl Implements IHidNumericControl// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

ControlDescription ControlDescription ControlDescription ControlDescription

Retrieves a control description for the given numeric control.

public : HidNumericControlDescription ControlDescription { get; }public HidNumericControlDescription ControlDescription { get; }Public ReadOnly Property ControlDescription As HidNumericControlDescription// You can use this property in JavaScript.

Id Id Id Id

Retrieves the identifier for the given numeric control.

public : unsigned int Id { get; }public uint Id { get; }Public ReadOnly Property Id As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The control identifier.

IsGrouped IsGrouped IsGrouped IsGrouped

Retrieves a Boolean value that indicates whether the given numeric control is grouped with other, related controls.

public : PlatForm::Boolean IsGrouped { get; }public bool IsGrouped { get; }Public ReadOnly Property IsGrouped As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if grouped; false otherwise.

ScaledValue ScaledValue ScaledValue ScaledValue

Retrieves, or sets, a scaled numeric-value for the given control.

public : long ScaledValue { get; set; }public long ScaledValue { get; set; }Public ReadWrite Property ScaledValue As long// You can use this property in JavaScript.
Value
long long long long

The scaled value.

UsageId UsageId UsageId UsageId

Retrieves the usage identifier for the given numeric control.

public : ushort UsageId { get; }public ushort UsageId { get; }Public ReadOnly Property UsageId As ushort// You can use this property in JavaScript.
Value
ushort ushort ushort ushort

The usage identifier.

UsagePage UsagePage UsagePage UsagePage

Retrieves the usage page for the given numeric control.

public : ushort UsagePage { get; }public ushort UsagePage { get; }Public ReadOnly Property UsagePage As ushort// You can use this property in JavaScript.
Value
ushort ushort ushort ushort

The usage page.

Value Value Value Value

Retrieves, or sets, the numeric value for a given control.

public : long Value { get; set; }public long Value { get; set; }Public ReadWrite Property Value As long// You can use this property in JavaScript.
Value
long long long long

The control value.