fix(room): support wired click-user controls

This commit is contained in:
Lorenzune
2026-03-21 14:27:57 +01:00
parent a0bece2d4a
commit fd61704375
3 changed files with 50 additions and 9 deletions
+8 -3
View File
@@ -2285,8 +2285,6 @@ export class RoomEngine implements IRoomEngine, IRoomCreator, IRoomEngineService
private handleRoomDragging(canvas: IRoomRenderingCanvas, x: number, y: number, type: string, altKey: boolean, ctrlKey: boolean, shiftKey: boolean): boolean
{
if(this.isPlayingGame()) return false;
if(this._areaSelectionManager.areaSelectionState === RoomAreaSelectionManager.SELECTING)
{
this._activeRoomIsDragged = false;
@@ -2521,11 +2519,18 @@ export class RoomEngine implements IRoomEngine, IRoomCreator, IRoomEngineService
public setSelectedAvatar(roomId: number, objectId: number): void
{
if(this._roomObjectEventHandler) return;
if(!this._roomObjectEventHandler) return;
this._roomObjectEventHandler.setSelectedAvatar(roomId, objectId, true);
}
public clearSelectedAvatar(roomId: number): void
{
if(!this._roomObjectEventHandler) return;
this._roomObjectEventHandler.clearSelectedAvatar(roomId);
}
public cancelRoomObjectInsert(): void
{
if(!this._roomObjectEventHandler) return;