Struct GorgonRawHIDData
A representation of the Raw Input data received from WM_INPUT
.
Inherited Members
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 SourceGorgonRawHIDData(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 SourceHIDDataSize
The size of an individual HID input, in bytes, within the HidData.
Declaration
public readonly int HIDDataSize
Field Value
Type | Description |
---|---|
int |
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 SourceItemCount
Property to return the number of HID inputs contained within the data.
Declaration
public int ItemCount { get; }
Property Value
Type | Description |
---|---|
int |