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
Download Visual Studio Add-In

HIDUsage (Enums)
 
.
Summary
Enumeration containing the HID usage flags for use with RAWINPUTDEVICE.

C# Definition:

/// <summary>
/// Enumeration containing the HID usage values.
/// </summary>
/// <summary>Enumeration containing the HID usage values.</summary>
public enum HIDUsage : ushort
{
    /// <summary></summary>
    Pointer = 0x01,
    /// <summary></summary>
    Mouse = 0x02,
    /// <summary></summary>
    Joystick = 0x04,
    /// <summary></summary>
    Gamepad = 0x05,
    /// <summary></summary>
    Keyboard = 0x06,
    /// <summary></summary>
    Keypad = 0x07,
    /// <summary></summary>
    SystemControl = 0x80,
    /// <summary></summary>
    X = 0x30,
    /// <summary></summary>
    Y = 0x31,
    /// <summary></summary>
    Z = 0x32,
    /// <summary></summary>
    RelativeX = 0x33,
    /// <summary></summary>    
    RelativeY = 0x34,
    /// <summary></summary>
    RelativeZ = 0x35,
    /// <summary></summary>
    Slider = 0x36,
    /// <summary></summary>
    Dial = 0x37,
    /// <summary></summary>
    Wheel = 0x38,
    /// <summary></summary>
    HatSwitch = 0x39,
    /// <summary></summary>
    CountedBuffer = 0x3A,
    /// <summary></summary>
    ByteCount = 0x3B,
    /// <summary></summary>
    MotionWakeup = 0x3C,
    /// <summary></summary>
    VX = 0x40,
    /// <summary></summary>
    VY = 0x41,
    /// <summary></summary>
    VZ = 0x42,
    /// <summary></summary>
    VBRX = 0x43,
    /// <summary></summary>
    VBRY = 0x44,
    /// <summary></summary>
    VBRZ = 0x45,
    /// <summary></summary>
    VNO = 0x46,
    /// <summary></summary>
    SystemControlPower = 0x81,
    /// <summary></summary>
    SystemControlSleep = 0x82,
    /// <summary></summary>
    SystemControlWake = 0x83,
    /// <summary></summary>
    SystemControlContextMenu = 0x84,
    /// <summary></summary>
    SystemControlMainMenu = 0x85,
    /// <summary></summary>
    SystemControlApplicationMenu = 0x86,
    /// <summary></summary>
    SystemControlHelpMenu = 0x87,
    /// <summary></summary>
    SystemControlMenuExit = 0x88,
    /// <summary></summary>
    SystemControlMenuSelect = 0x89,
    /// <summary></summary>
    SystemControlMenuRight = 0x8A,
    /// <summary></summary>
    SystemControlMenuLeft = 0x8B,
    /// <summary></summary>
    SystemControlMenuUp = 0x8C,
    /// <summary></summary>
    SystemControlMenuDown = 0x8D,
    /// <summary></summary>
    KeyboardNoEvent = 0x00,
    /// <summary></summary>
    KeyboardRollover = 0x01,
    /// <summary></summary>
    KeyboardPostFail = 0x02,
    /// <summary></summary>
    KeyboardUndefined = 0x03,
    /// <summary></summary>
    KeyboardaA = 0x04,
    /// <summary></summary>
    KeyboardzZ = 0x1D,
    /// <summary></summary>
    Keyboard1 = 0x1E,
    /// <summary></summary>
    Keyboard0 = 0x27,
    /// <summary></summary>
    KeyboardLeftControl = 0xE0,
    /// <summary></summary>
    KeyboardLeftShift = 0xE1,
    /// <summary></summary>
    KeyboardLeftALT = 0xE2,
    /// <summary></summary>
    KeyboardLeftGUI = 0xE3,
    /// <summary></summary>
    KeyboardRightControl = 0xE4,
    /// <summary></summary>
    KeyboardRightShift = 0xE5,
    /// <summary></summary>
    KeyboardRightALT = 0xE6,
    /// <summary></summary>
    KeyboardRightGUI = 0xE7,
    /// <summary></summary>
    KeyboardScrollLock = 0x47,
    /// <summary></summary>
    KeyboardNumLock = 0x53,
    /// <summary></summary>
    KeyboardCapsLock = 0x39,
    /// <summary></summary>
    KeyboardF1 = 0x3A,
    /// <summary></summary>
    KeyboardF12 = 0x45,
    /// <summary></summary>
    KeyboardReturn = 0x28,
    /// <summary></summary>
    KeyboardEscape = 0x29,
    /// <summary></summary>
    KeyboardDelete = 0x2A,
    /// <summary></summary>
    KeyboardPrintScreen = 0x46,
    /// <summary></summary>
    LEDNumLock = 0x01,
    /// <summary></summary>
    LEDCapsLock = 0x02,
    /// <summary></summary>
    LEDScrollLock = 0x03,
    /// <summary></summary>
    LEDCompose = 0x04,
    /// <summary></summary>
    LEDKana = 0x05,
    /// <summary></summary>
    LEDPower = 0x06,
    /// <summary></summary>
    LEDShift = 0x07,
    /// <summary></summary>
    LEDDoNotDisturb = 0x08,
    /// <summary></summary>
    LEDMute = 0x09,
    /// <summary></summary>
    LEDToneEnable = 0x0A,
    /// <summary></summary>
    LEDHighCutFilter = 0x0B,
    /// <summary></summary>
    LEDLowCutFilter = 0x0C,
    /// <summary></summary>
    LEDEqualizerEnable = 0x0D,
    /// <summary></summary>
    LEDSoundFieldOn = 0x0E,
    /// <summary></summary>
    LEDSurroundFieldOn = 0x0F,
    /// <summary></summary>
    LEDRepeat = 0x10,
    /// <summary></summary>
    LEDStereo = 0x11,
    /// <summary></summary>
    LEDSamplingRateDirect = 0x12,
    /// <summary></summary>
    LEDSpinning = 0x13,
    /// <summary></summary>
    LEDCAV = 0x14,
    /// <summary></summary>
    LEDCLV = 0x15,
    /// <summary></summary>
    LEDRecordingFormatDet = 0x16,
    /// <summary></summary>
    LEDOffHook = 0x17,
    /// <summary></summary>
    LEDRing = 0x18,
    /// <summary></summary>
    LEDMessageWaiting = 0x19,
    /// <summary></summary>
    LEDDataMode = 0x1A,
    /// <summary></summary>
    LEDBatteryOperation = 0x1B,
    /// <summary></summary>
    LEDBatteryOK = 0x1C,
    /// <summary></summary>
    LEDBatteryLow = 0x1D,
    /// <summary></summary>
    LEDSpeaker = 0x1E,
    /// <summary></summary>
    LEDHeadset = 0x1F,
    /// <summary></summary>
    LEDHold = 0x20,
    /// <summary></summary>
    LEDMicrophone = 0x21,
    /// <summary></summary>
    LEDCoverage = 0x22,
    /// <summary></summary>
    LEDNightMode = 0x23,
    /// <summary></summary>
    LEDSendCalls = 0x24,
    /// <summary></summary>
    LEDCallPickup = 0x25,
    /// <summary></summary>
    LEDConference = 0x26,
    /// <summary></summary>
    LEDStandBy = 0x27,
    /// <summary></summary>
    LEDCameraOn = 0x28,
    /// <summary></summary>
    LEDCameraOff = 0x29,
    /// <summary></summary>    
    LEDOnLine = 0x2A,
    /// <summary></summary>
    LEDOffLine = 0x2B,
    /// <summary></summary>
    LEDBusy = 0x2C,
    /// <summary></summary>
    LEDReady = 0x2D,
    /// <summary></summary>
    LEDPaperOut = 0x2E,
    /// <summary></summary>
    LEDPaperJam = 0x2F,
    /// <summary></summary>
    LEDRemote = 0x30,
    /// <summary></summary>
    LEDForward = 0x31,
    /// <summary></summary>
    LEDReverse = 0x32,
    /// <summary></summary>
    LEDStop = 0x33,
    /// <summary></summary>
    LEDRewind = 0x34,
    /// <summary></summary>
    LEDFastForward = 0x35,
    /// <summary></summary>
    LEDPlay = 0x36,
    /// <summary></summary>
    LEDPause = 0x37,
    /// <summary></summary>
    LEDRecord = 0x38,
    /// <summary></summary>
    LEDError = 0x39,
    /// <summary></summary>
    LEDSelectedIndicator = 0x3A,
    /// <summary></summary>
    LEDInUseIndicator = 0x3B,
    /// <summary></summary>
    LEDMultiModeIndicator = 0x3C,
    /// <summary></summary>
    LEDIndicatorOn = 0x3D,
    /// <summary></summary>
    LEDIndicatorFlash = 0x3E,
    /// <summary></summary>
    LEDIndicatorSlowBlink = 0x3F,
    /// <summary></summary>
    LEDIndicatorFastBlink = 0x40,
    /// <summary></summary>
    LEDIndicatorOff = 0x41,
    /// <summary></summary>
    LEDFlashOnTime = 0x42,
    /// <summary></summary>
    LEDSlowBlinkOnTime = 0x43,
    /// <summary></summary>
    LEDSlowBlinkOffTime = 0x44,
    /// <summary></summary>
    LEDFastBlinkOnTime = 0x45,
    /// <summary></summary>
    LEDFastBlinkOffTime = 0x46,
    /// <summary></summary>
    LEDIndicatorColor = 0x47,
    /// <summary></summary>
    LEDRed = 0x48,
    /// <summary></summary>
    LEDGreen = 0x49,
    /// <summary></summary>
    LEDAmber = 0x4A,
    /// <summary></summary>
    LEDGenericIndicator = 0x3B,
    /// <summary></summary>
    TelephonyPhone = 0x01,
    /// <summary></summary>
    TelephonyAnsweringMachine = 0x02,
    /// <summary></summary>
    TelephonyMessageControls = 0x03,
    /// <summary></summary>
    TelephonyHandset = 0x04,
    /// <summary></summary>
    TelephonyHeadset = 0x05,
    /// <summary></summary>
    TelephonyKeypad = 0x06,
    /// <summary></summary>
    TelephonyProgrammableButton = 0x07,
    /// <summary></summary>
    SimulationRudder = 0xBA,
    /// <summary></summary>
    SimulationThrottle = 0xBB
}

VB.NET Definition:

''' <summary>
''' Enumeration containing the HID usage values.
''' </summary>
''' <summary>Enumeration containing the HID usage values.</summary>
Public Enum HIDUsage As UShort
    ''' <summary></summary>
    Pointer = &H1
    ''' <summary></summary>
    Mouse = &H2
    ''' <summary></summary>
    Joystick = &H4
    ''' <summary></summary>
    Gamepad = &H5
    ''' <summary></summary>
    Keyboard = &H6
    ''' <summary></summary>
    Keypad = &H7
    ''' <summary></summary>
    SystemControl = &H80
    ''' <summary></summary>
    X = &H30
    ''' <summary></summary>
    Y = &H31
    ''' <summary></summary>
    Z = &H32
    ''' <summary></summary>
    RelativeX = &H33
    ''' <summary></summary>    
    RelativeY = &H34
    ''' <summary></summary>
    RelativeZ = &H35
    ''' <summary></summary>
    Slider = &H36
    ''' <summary></summary>
    Dial = &H37
    ''' <summary></summary>
    Wheel = &H38
    ''' <summary></summary>
    HatSwitch = &H39
    ''' <summary></summary>
    CountedBuffer = &H3a
    ''' <summary></summary>
    ByteCount = &H3b
    ''' <summary></summary>
    MotionWakeup = &H3c
    ''' <summary></summary>
    VX = &H40
    ''' <summary></summary>
    VY = &H41
    ''' <summary></summary>
    VZ = &H42
    ''' <summary></summary>
    VBRX = &H43
    ''' <summary></summary>
    VBRY = &H44
    ''' <summary></summary>
    VBRZ = &H45
    ''' <summary></summary>
    VNO = &H46
    ''' <summary></summary>
    SystemControlPower = &H81
    ''' <summary></summary>
    SystemControlSleep = &H82
    ''' <summary></summary>
    SystemControlWake = &H83
    ''' <summary></summary>
    SystemControlContextMenu = &H84
    ''' <summary></summary>
    SystemControlMainMenu = &H85
    ''' <summary></summary>
    SystemControlApplicationMenu = &H86
    ''' <summary></summary>
    SystemControlHelpMenu = &H87
    ''' <summary></summary>
    SystemControlMenuExit = &H88
    ''' <summary></summary>
    SystemControlMenuSelect = &H89
    ''' <summary></summary>
    SystemControlMenuRight = &H8a
    ''' <summary></summary>
    SystemControlMenuLeft = &H8b
    ''' <summary></summary>
    SystemControlMenuUp = &H8c
    ''' <summary></summary>
    SystemControlMenuDown = &H8d
    ''' <summary></summary>
    KeyboardNoEvent = &H0
    ''' <summary></summary>
    KeyboardRollover = &H1
    ''' <summary></summary>
    KeyboardPostFail = &H2
    ''' <summary></summary>
    KeyboardUndefined = &H3
    ''' <summary></summary>
    KeyboardaA = &H4
    ''' <summary></summary>
    KeyboardzZ = &H1d
    ''' <summary></summary>
    Keyboard1 = &H1e
    ''' <summary></summary>
    Keyboard0 = &H27
    ''' <summary></summary>
    KeyboardLeftControl = &He0
    ''' <summary></summary>
    KeyboardLeftShift = &He1
    ''' <summary></summary>
    KeyboardLeftALT = &He2
    ''' <summary></summary>
    KeyboardLeftGUI = &He3
    ''' <summary></summary>
    KeyboardRightControl = &He4
    ''' <summary></summary>
    KeyboardRightShift = &He5
    ''' <summary></summary>
    KeyboardRightALT = &He6
    ''' <summary></summary>
    KeyboardRightGUI = &He7
    ''' <summary></summary>
    KeyboardScrollLock = &H47
    ''' <summary></summary>
    KeyboardNumLock = &H53
    ''' <summary></summary>
    KeyboardCapsLock = &H39
    ''' <summary></summary>
    KeyboardF1 = &H3a
    ''' <summary></summary>
    KeyboardF12 = &H45
    ''' <summary></summary>
    KeyboardReturn = &H28
    ''' <summary></summary>
    KeyboardEscape = &H29
    ''' <summary></summary>
    KeyboardDelete = &H2a
    ''' <summary></summary>
    KeyboardPrintScreen = &H46
    ''' <summary></summary>
    LEDNumLock = &H1
    ''' <summary></summary>
    LEDCapsLock = &H2
    ''' <summary></summary>
    LEDScrollLock = &H3
    ''' <summary></summary>
    LEDCompose = &H4
    ''' <summary></summary>
    LEDKana = &H5
    ''' <summary></summary>
    LEDPower = &H6
    ''' <summary></summary>
    LEDShift = &H7
    ''' <summary></summary>
    LEDDoNotDisturb = &H8
    ''' <summary></summary>
    LEDMute = &H9
    ''' <summary></summary>
    LEDToneEnable = &Ha
    ''' <summary></summary>
    LEDHighCutFilter = &Hb
    ''' <summary></summary>
    LEDLowCutFilter = &Hc
    ''' <summary></summary>
    LEDEqualizerEnable = &Hd
    ''' <summary></summary>
    LEDSoundFieldOn = &He
    ''' <summary></summary>
    LEDSurroundFieldOn = &Hf
    ''' <summary></summary>
    LEDRepeat = &H10
    ''' <summary></summary>
    LEDStereo = &H11
    ''' <summary></summary>
    LEDSamplingRateDirect = &H12
    ''' <summary></summary>
    LEDSpinning = &H13
    ''' <summary></summary>
    LEDCAV = &H14
    ''' <summary></summary>
    LEDCLV = &H15
    ''' <summary></summary>
    LEDRecordingFormatDet = &H16
    ''' <summary></summary>
    LEDOffHook = &H17
    ''' <summary></summary>
    LEDRing = &H18
    ''' <summary></summary>
    LEDMessageWaiting = &H19
    ''' <summary></summary>
    LEDDataMode = &H1a
    ''' <summary></summary>
    LEDBatteryOperation = &H1b
    ''' <summary></summary>
    LEDBatteryOK = &H1c
    ''' <summary></summary>
    LEDBatteryLow = &H1d
    ''' <summary></summary>
    LEDSpeaker = &H1e
    ''' <summary></summary>
    LEDHeadset = &H1f
    ''' <summary></summary>
    LEDHold = &H20
    ''' <summary></summary>
    LEDMicrophone = &H21
    ''' <summary></summary>
    LEDCoverage = &H22
    ''' <summary></summary>
    LEDNightMode = &H23
    ''' <summary></summary>
    LEDSendCalls = &H24
    ''' <summary></summary>
    LEDCallPickup = &H25
    ''' <summary></summary>
    LEDConference = &H26
    ''' <summary></summary>
    LEDStandBy = &H27
    ''' <summary></summary>
    LEDCameraOn = &H28
    ''' <summary></summary>
    LEDCameraOff = &H29
    ''' <summary></summary>    
    LEDOnLine = &H2a
    ''' <summary></summary>
    LEDOffLine = &H2b
    ''' <summary></summary>
    LEDBusy = &H2c
    ''' <summary></summary>
    LEDReady = &H2d
    ''' <summary></summary>
    LEDPaperOut = &H2e
    ''' <summary></summary>
    LEDPaperJam = &H2f
    ''' <summary></summary>
    LEDRemote = &H30
    ''' <summary></summary>
    LEDForward = &H31
    ''' <summary></summary>
    LEDReverse = &H32
    ''' <summary></summary>
    LEDStop = &H33
    ''' <summary></summary>
    LEDRewind = &H34
    ''' <summary></summary>
    LEDFastForward = &H35
    ''' <summary></summary>
    LEDPlay = &H36
    ''' <summary></summary>
    LEDPause = &H37
    ''' <summary></summary>
    LEDRecord = &H38
    ''' <summary></summary>
    LEDError = &H39
    ''' <summary></summary>
    LEDSelectedIndicator = &H3a
    ''' <summary></summary>
    LEDInUseIndicator = &H3b
    ''' <summary></summary>
    LEDMultiModeIndicator = &H3c
    ''' <summary></summary>
    LEDIndicatorOn = &H3d
    ''' <summary></summary>
    LEDIndicatorFlash = &H3e
    ''' <summary></summary>
    LEDIndicatorSlowBlink = &H3f
    ''' <summary></summary>
    LEDIndicatorFastBlink = &H40
    ''' <summary></summary>
    LEDIndicatorOff = &H41
    ''' <summary></summary>
    LEDFlashOnTime = &H42
    ''' <summary></summary>
    LEDSlowBlinkOnTime = &H43
    ''' <summary></summary>
    LEDSlowBlinkOffTime = &H44
    ''' <summary></summary>
    LEDFastBlinkOnTime = &H45
    ''' <summary></summary>
    LEDFastBlinkOffTime = &H46
    ''' <summary></summary>
    LEDIndicatorColor = &H47
    ''' <summary></summary>
    LEDRed = &H48
    ''' <summary></summary>
    LEDGreen = &H49
    ''' <summary></summary>
    LEDAmber = &H4a
    ''' <summary></summary>
    LEDGenericIndicator = &H3b
    ''' <summary></summary>
    TelephonyPhone = &H1
    ''' <summary></summary>
    TelephonyAnsweringMachine = &H2
    ''' <summary></summary>
    TelephonyMessageControls = &H3
    ''' <summary></summary>
    TelephonyHandset = &H4
    ''' <summary></summary>
    TelephonyHeadset = &H5
    ''' <summary></summary>
    TelephonyKeypad = &H6
    ''' <summary></summary>
    TelephonyProgrammableButton = &H7
    ''' <summary></summary>
    SimulationRudder = &Hba
    ''' <summary></summary>
    SimulationThrottle = &Hbb
End Enum

Notes:

None.

Documentation
HIDUsage on MSDN
 

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