Interface IGorgonRawHID
Provides state for human interface data returned from Raw Input.
Inherited Members
Namespace: Gorgon.Input
Assembly: Gorgon.Input.dll
Syntax
public interface IGorgonRawHID : IGorgonRawInputDevice, IGorgonRawInputDeviceData<GorgonRawHIDData>, IDisposable
Remarks
This allows a user to read, and parse human interface device data from an aribtrary device. It is recommended that this object be wrapped by an actual object that will be used to present the data in an easy to manipulate format.
This object implements IDisposable because it manipulates native memory. It is necessary to call the Dispose() method in order to ensure there is no memory leak when finished with this object.
Properties
| Edit this page View SourceCount
Property to return the number of inputs in the Data.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
int |
Data
Property to return a pointer to the block of memory that stores the HID data.
Declaration
GorgonPtr<byte> Data { get; }
Property Value
Type | Description |
---|---|
GorgonPtr<byte> |
HIDSize
Property to return the size of an individual HID input, in bytes.
Declaration
int HIDSize { get; }
Property Value
Type | Description |
---|---|
int |
Info
Property to return information about the Raw Input Human Interface Device.
Declaration
IGorgonRawHIDInfo Info { get; }
Property Value
Type | Description |
---|---|
IGorgonRawHIDInfo |
PreParsedData
Property to return the pre-parsed data for this HID.
Declaration
GorgonPtr<byte> PreParsedData { get; }
Property Value
Type | Description |
---|---|
GorgonPtr<byte> |
Events
| Edit this page View SourceDataReceived
Event triggered when Raw Input receives data from the device.
Declaration
event EventHandler<GorgonHIDEventArgs> DataReceived
Event Type
Type | Description |
---|---|
EventHandler<GorgonHIDEventArgs> |