mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-02-20 02:32:37 +01:00
Update api
This commit is contained in:
parent
1c76bab7b4
commit
6ed7cb6b6f
@ -7,7 +7,6 @@ let clickCount = 0;
|
|||||||
|
|
||||||
export function DispatchTouchEvent(roomId: number, canvasId: number, event: TouchEvent)
|
export function DispatchTouchEvent(roomId: number, canvasId: number, event: TouchEvent)
|
||||||
{
|
{
|
||||||
console.log(event);
|
|
||||||
let eventType = event.type;
|
let eventType = event.type;
|
||||||
|
|
||||||
if(eventType === TouchEventType.TOUCH_END && !didMouseMove)
|
if(eventType === TouchEventType.TOUCH_END && !didMouseMove)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { IRoomSession } from 'nitro-renderer';
|
import { IRoomSession } from 'nitro-renderer';
|
||||||
import { GetRoomSessionManager } from './GetRoomSessionManager';
|
import { GetRoomSessionManager } from './GetRoomSessionManager';
|
||||||
|
|
||||||
export function GetRoomSession(roomId: number): IRoomSession
|
export function GetRoomSession(): IRoomSession
|
||||||
{
|
{
|
||||||
return GetRoomSessionManager().getSession(roomId);
|
return GetRoomSessionManager().getSession(-1);
|
||||||
}
|
}
|
||||||
|
6
src/api/nitro/session/SendChatTypingMessage.ts
Normal file
6
src/api/nitro/session/SendChatTypingMessage.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { GetRoomSession } from './GetRoomSession';
|
||||||
|
|
||||||
|
export function SendChatTypingMessage(isTyping: boolean): void
|
||||||
|
{
|
||||||
|
GetRoomSession().sendChatTypingMessage(isTyping);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user