HidBooleanControl
HidBooleanControl
HidBooleanControl
HidBooleanControl
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// 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 description of the given Boolean control.
public : HidBooleanControlDescription ControlDescription { get; }public HidBooleanControlDescription ControlDescription { get; }Public ReadOnly Property ControlDescription As HidBooleanControlDescription// You can use this property in JavaScript.
- Value
- HidBooleanControlDescription HidBooleanControlDescription HidBooleanControlDescription HidBooleanControlDescription
A HidBooleanControlDescription object.
Id Id Id Id
Retrieves the identifier for a given Boolean 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.
IsActive 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// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
True if the control is active; false otherwise.
UsageId 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// You can use this property in JavaScript.
- Value
- ushort ushort ushort ushort
The usage identifier.