Skip to content

@modoki/engine / index / registerSource

Function: registerSource()

registerSource(source): void

Register an input source. De-duplicates by name (last wins) so a hot-reload or a game replacing a source doesn't stack duplicates. Attaches immediately if the registry is already attached.

Parameters

source

InputSource

Returns

void

Built with Modoki.