HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - OutboundStreamEvents.input

Home > @rainway/native > OutboundStreamEvents > input

OutboundStreamEvents.input property

Raised when an input (keyboard, mouse, gamepad...) is received from a remote device, before we've processed the input. Only input attempts enabled by the stream's InputLevel cause these events.

You can listen to this event and call preventDefault on the event to cancel input processing.

Signature:

input: (ev: InputEvent) => EventReturnType;