Hid​Numeric​Control Hid​Numeric​Control Hid​Numeric​Control 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
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

Retrieves a control description for the given numeric control.

public : HidNumericControlDescription ControlDescription { get; }public HidNumericControlDescription ControlDescription { get; }Public ReadOnly Property ControlDescription As HidNumericControlDescription
Attributes

Id Id Id

Retrieves the identifier for the given numeric control.

public : unsigned short Id { get; }public uint Id { get; }Public ReadOnly Property Id As uint
Value
unsigned short uint uint

The control identifier.

Attributes

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
Value
PlatForm::Boolean bool bool

True if grouped; false otherwise.

Attributes

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
Value
long long long

The scaled value.

Attributes

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
Value
ushort ushort ushort

The usage identifier.

Attributes

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
Value
ushort ushort ushort

The usage page.

Attributes

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
Value
long long long

The control value.

Attributes