Gorgon
Show / Hide Table of Contents

Class GorgonHIDEventArgs

Event arguments for an DataReceived event.

Inheritance
object
EventArgs
GorgonHIDEventArgs
Inherited Members
EventArgs.Empty
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Gorgon.Input
Assembly: Gorgon.Input.dll
Syntax
public class GorgonHIDEventArgs : EventArgs

Constructors

| Edit this page View Source

GorgonHIDEventArgs(GorgonPtr<byte>, int, int)

Initializes a new instance of the GorgonHIDEventArgs class.

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

The HID data.

int size

The size of an individual HID input.

int count

The number of HID inputs.

Properties

| Edit this page View Source

Count

Property to return the number of HID inputs within the Data

Declaration
public int Count { get; }
Property Value
Type Description
int
| Edit this page View Source

Data

Property to return the data buffer storing the HID data.

Declaration
public GorgonPtr<byte> Data { get; }
Property Value
Type Description
GorgonPtr<byte>
| Edit this page View Source

HIDSize

Property to return the size of an individual HID input in the Data, in bytes.

Declaration
public int HIDSize { get; }
Property Value
Type Description
int

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • 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