Pointer to an InputEvent. Makes it easier to work with InputEvents and hides
the unsafe operations necessary to work with events.
public struct InputEventPtr : IEquatable<InputEventPtr>
 
Constructors
  
Declaration
public InputEventPtr(InputEvent*eventPtr)
 
Parameters
Properties
  
Declaration
public InputEvent*data { get; }
 
Property Value
Declaration
public int deviceId { get; set; }
 
Property Value
| Type | Description | 
| System.Int32 |  | 
Declaration
public bool handled { get; set; }
 
Property Value
| Type | Description | 
| System.Boolean |  | 
Declaration
public int id { get; set; }
 
Property Value
| Type | Description | 
| System.Int32 |  | 
Declaration
public uint sizeInBytes { get; }
 
Property Value
| Type | Description | 
| System.UInt32 |  | 
Declaration
public double time { get; set; }
 
Property Value
| Type | Description | 
| System.Double |  | 
Declaration
public FourCC type { get; }
 
Property Value
Declaration
public bool valid { get; }
 
Property Value
| Type | Description | 
| System.Boolean |  | 
Methods
  
Declaration
public void CopyTo(void *buffer, int bufferSize)
 
Parameters
| Type | Name | Description | 
| System.Void* | buffer |  | 
| System.Int32 | bufferSize |  | 
Declaration
public override bool Equals(object obj)
 
Parameters
| Type | Name | Description | 
| System.Object | obj |  | 
Returns
| Type | Description | 
| System.Boolean |  | 
Overrides
System.ValueType.Equals(System.Object)
Declaration
public bool Equals(InputEventPtr other)
 
Parameters
Returns
| Type | Description | 
| System.Boolean |  | 
Declaration
public override int GetHashCode()
 
Returns
| Type | Description | 
| System.Int32 |  | 
Overrides
System.ValueType.GetHashCode()
Declaration
public bool IsA<TOtherEvent>()
    where TOtherEvent : struct, IInputEventTypeInfo
 
Returns
| Type | Description | 
| System.Boolean |  | 
Type Parameters
| Name | Description | 
| TOtherEvent |  | 
Declaration
public InputEventPtr Next()
 
Returns
Declaration
public override string ToString()
 
Returns
| Type | Description | 
| System.String |  | 
Overrides
System.ValueType.ToString()
Operators
  
Declaration
public static bool operator ==(InputEventPtr left, InputEventPtr right)
 
Parameters
Returns
| Type | Description | 
| System.Boolean |  | 
Declaration
public static implicit operator InputEventPtr(InputEvent*eventPtr)
 
Parameters
Returns
Declaration
public static implicit operator InputEvent*(InputEventPtr eventPtr)
 
Parameters
Returns
Declaration
public static bool operator !=(InputEventPtr left, InputEventPtr right)
 
Parameters
Returns
| Type | Description | 
| System.Boolean |  |