Hid​Boolean​Control Hid​Boolean​Control Hid​Boolean​Control Class

Definition

Represents a simple Boolean control on a HID device that returns on/off values. An example would be the LED light on a keyboard.

public sealed class HidBooleanControl : IHidBooleanControlpublic sealed class HidBooleanControl : IHidBooleanControlPublic NotInheritable Class HidBooleanControl Implements IHidBooleanControl
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 description of the given Boolean control.

public HidBooleanControlDescription ControlDescription { get; }public HidBooleanControlDescription ControlDescription { get; }Public ReadOnly Property ControlDescription As HidBooleanControlDescription
Attributes

Id Id Id

Retrieves the identifier for a given Boolean control.

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

The control identifier.

Attributes

IsActive IsActive IsActive

Retrieves a Boolean value indicating whether the given Boolean control is active.

public PlatForm::Boolean IsActive { get; set; }public bool IsActive { get; set; }Public ReadWrite Property IsActive As bool
Value
bool bool bool

True if the control is active; false otherwise.

Attributes

UsageId UsageId UsageId

Retrieves the usage identifier associated with the given Boolean 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 a given Boolean control.

public ushort UsagePage { get; }public ushort UsagePage { get; }Public ReadOnly Property UsagePage As ushort
Value
ushort ushort ushort

The usage page.

Attributes