2021-03-18 17:25:20 +00:00
|
|
|
import * as loader from "tc-loader";
|
|
|
|
import {Stage} from "tc-loader";
|
|
|
|
import {setKeyBoardBackend} from "tc-shared/PPTListener";
|
|
|
|
import {WebKeyBoard} from "../KeyBoard";
|
|
|
|
|
2021-04-19 11:27:09 +00:00
|
|
|
/*
|
|
|
|
* Will be loaded within the renderer and the main application.
|
|
|
|
*/
|
|
|
|
|
2021-03-18 17:25:20 +00:00
|
|
|
loader.register_task(Stage.JAVASCRIPT_INITIALIZING, {
|
|
|
|
name: "audio backend init",
|
|
|
|
function: async () => setKeyBoardBackend(new WebKeyBoard()),
|
|
|
|
priority: 100
|
|
|
|
});
|