MWSE/public/core.js

25 lines
547 B
JavaScript

import "./studio/window.js";
import { InputDevicesWindow } from "./studio/InputDevices.js";
import { Rooms } from "./studio/Rooms.js";
let mwse = new MWSE({
endpoint: "ws://localhost:7707"
});
mwse.scope(beginEngine);
async function beginEngine()
{
let me = await mwse.virtualPressure.allocAPIPAddress();
$(".network-id").text(me);
}
window.openInputDevicesWindow = () => {
InputDevicesWindow.toggle();
InputDevicesWindow.bringToFront();
};
window.openRoomsWindow = () => {
Rooms.toggle();
Rooms.bringToFront();
};