Home > @rainway/native > InputEvent_2
InputEvent_2 class
An event that occurs when input arrives for a given OutboundStream. Can be used to prevent input event processing, preventing the host from handling the input.
Signature:
export declare class InputEvent extends BaseEvent<InputBody>
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(native) | Constructs a new instance of the InputEvent class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
defaultPrevented | boolean | Flag indicating if the input event has been prevented, in which case it will be ignored by the host. | |
id | BigInt | The ID of the peer emitting the input. |
Methods
Method | Modifiers | Description |
---|---|---|
preventDefault() | Prevents the input event from being processed by the host. |