Gorgon
Show / Hide Table of Contents

Struct GorgonRawHIDData

A representation of the Raw Input data received from WM_INPUT.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: Gorgon.Input
Assembly: Gorgon.Input.dll
Syntax
public readonly struct GorgonRawHIDData
Remarks

This is a Gorgon friendly representation of the data received from the WM_INPUT window message. The data from Raw Input is parsed and placed in an instance of this type and sent to the appropriate GorgonRawKeyboard device object to be turned into state for that device.

This type is not intended for use by applications.

Constructors

| Edit this page View Source

GorgonRawHIDData(in GorgonPtr<byte>, int)

Initializes a new instance of the GorgonRawHIDData struct.

Declaration
public GorgonRawHIDData(in GorgonPtr<byte> data, int size)
Parameters
Type Name Description
GorgonPtr<byte> data

The device data received from raw input.

int size

The size of a single HID value within the data.

Fields

| Edit this page View Source

HIDDataSize

The size of an individual HID input, in bytes, within the HidData.

Declaration
public readonly int HIDDataSize
Field Value
Type Description
int
| Edit this page View Source

HidData

A pointer to the device data received from Raw Input.

Declaration
public readonly GorgonPtr<byte> HidData
Field Value
Type Description
GorgonPtr<byte>

Properties

| Edit this page View Source

ItemCount

Property to return the number of HID inputs contained within the data.

Declaration
public int ItemCount { get; }
Property Value
Type Description
int
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author