Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
HIDUsagePage (Enums)
 
.
Summary
Enumeration containing HID usage pages for use with RAWINPUTDEVICE.

C# Definition:

/// <summary>
/// Enumeration containing HID usage page flags.
/// </summary>
public enum HIDUsagePage : ushort
{
    /// <summary>Unknown usage page.</summary>
    Undefined = 0x00,
    /// <summary>Generic desktop controls.</summary>
    Generic = 0x01,
    /// <summary>Simulation controls.</summary>
    Simulation = 0x02,
    /// <summary>Virtual reality controls.</summary>
    VR = 0x03,
    /// <summary>Sports controls.</summary>
    Sport = 0x04,
    /// <summary>Games controls.</summary>
    Game = 0x05,
    /// <summary>Keyboard controls.</summary>
    Keyboard = 0x07,
    /// <summary>LED controls.</summary>
    LED = 0x08,
    /// <summary>Button.</summary>
    Button = 0x09,
    /// <summary>Ordinal.</summary>
    Ordinal = 0x0A,
    /// <summary>Telephony.</summary>
    Telephony = 0x0B,
    /// <summary>Consumer.</summary>
    Consumer = 0x0C,
    /// <summary>Digitizer.</summary>
    Digitizer = 0x0D,
    /// <summary>Physical interface device.</summary>
    PID = 0x0F,
    /// <summary>Unicode.</summary>
    Unicode = 0x10,
    /// <summary>Alphanumeric display.</summary>
    AlphaNumeric = 0x14,
    /// <summary>Medical instruments.</summary>
    Medical = 0x40,
    /// <summary>Monitor page 0.</summary>
    MonitorPage0 = 0x80,
    /// <summary>Monitor page 1.</summary>
    MonitorPage1 = 0x81,
    /// <summary>Monitor page 2.</summary>
    MonitorPage2 = 0x82,
    /// <summary>Monitor page 3.</summary>
    MonitorPage3 = 0x83,
    /// <summary>Power page 0.</summary>
    PowerPage0 = 0x84,
    /// <summary>Power page 1.</summary>
    PowerPage1 = 0x85,
    /// <summary>Power page 2.</summary>
    PowerPage2 = 0x86,
    /// <summary>Power page 3.</summary>
    PowerPage3 = 0x87,
    /// <summary>Bar code scanner.</summary>
    BarCode = 0x8C,
    /// <summary>Scale page.</summary>
    Scale = 0x8D,
    /// <summary>Magnetic strip reading devices.</summary>
    MSR = 0x8E
}

VB.NET Definition:

''' <summary>HID usage page flags.</summary>

Public Enum HIDUsagePage As UShort
    ''' <summary>Unknown usage page.</summary>
    Undefined = &H0
    ''' <summary>Generic desktop controls.</summary>
    Generic = &H1
    ''' <summary>Simulation controls.</summary>
    Simulation = &H2
    ''' <summary>Virtual reality controls.</summary>
    VR = &H3
    ''' <summary>Sports controls.</summary>
    Sport = &H4
    ''' <summary>Games controls.</summary>
    Game = &H5
    ''' <summary>Keyboard controls.</summary>
    Keyboard = &H7
    ''' <summary>LED controls.</summary>
    LED = &H8
    ''' <summary>Button.</summary>
    Button = &H9
    ''' <summary>Ordinal.</summary>
    Ordinal = &Ha
    ''' <summary>Telephony.</summary>
    Telephony = &Hb
    ''' <summary>Consumer.</summary>
    Consumer = &Hc
    ''' <summary>Digitizer.</summary>
    Digitizer = &Hd
    ''' <summary>Physical interface device.</summary>
    PID = &Hf
    ''' <summary>Unicode.</summary>
    Unicode = &H10
    ''' <summary>Alphanumeric display.</summary>
    AlphaNumeric = &H14
    ''' <summary>Medical instruments.</summary>
    Medical = &H40
    ''' <summary>Monitor page 0.</summary>
    MonitorPage0 = &H80
    ''' <summary>Monitor page 1.</summary>
    MonitorPage1 = &H81
    ''' <summary>Monitor page 2.</summary>
    MonitorPage2 = &H82
    ''' <summary>Monitor page 3.</summary>
    MonitorPage3 = &H83
    ''' <summary>Power page 0.</summary>
    PowerPage0 = &H84
    ''' <summary>Power page 1.</summary>
    PowerPage1 = &H85
    ''' <summary>Power page 2.</summary>
    PowerPage2 = &H86
    ''' <summary>Power page 3.</summary>
    PowerPage3 = &H87
    ''' <summary>Bar code scanner.</summary>
    BarCode = &H8c
    ''' <summary>Scale page.</summary>
    Scale = &H8d
    ''' <summary>Magnetic strip reading devices.</summary>
    MSR = &H8e
End Enum

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions