Update api

This commit is contained in:
Bill 2021-05-04 18:41:22 -04:00
parent 1c76bab7b4
commit 6ed7cb6b6f
3 changed files with 8 additions and 3 deletions

View File

@ -7,7 +7,6 @@ let clickCount = 0;
export function DispatchTouchEvent(roomId: number, canvasId: number, event: TouchEvent)
{
console.log(event);
let eventType = event.type;
if(eventType === TouchEventType.TOUCH_END && !didMouseMove)

View File

@ -1,7 +1,7 @@
import { IRoomSession } from 'nitro-renderer';
import { GetRoomSessionManager } from './GetRoomSessionManager';
export function GetRoomSession(roomId: number): IRoomSession
export function GetRoomSession(): IRoomSession
{
return GetRoomSessionManager().getSession(roomId);
return GetRoomSessionManager().getSession(-1);
}

View File

@ -0,0 +1,6 @@
import { GetRoomSession } from './GetRoomSession';
export function SendChatTypingMessage(isTyping: boolean): void
{
GetRoomSession().sendChatTypingMessage(isTyping);
}