cursor image/position from WebRTC.

This commit is contained in:
Miroslav Šedivý
2021-02-13 17:29:35 +01:00
parent 3423cbc3b2
commit 56a00a404c
7 changed files with 96 additions and 88 deletions

View File

@ -30,9 +30,6 @@ export const CLIPBOARD_SET = 'clipboard/set'
export const KEYBOARD_MODIFIERS = 'keyboard/modifiers'
export const KEYBOARD_MAP = 'keyboard/map'
export const CURSOR_IMAGE = 'cursor/image'
export const CURSOR_POSITION = 'cursor/position'
export const BORADCAST_STATUS = 'broadcast/status'
export const SEND_UNICAST = 'send/unicast'

View File

@ -14,7 +14,6 @@ export interface SystemInit {
screen_size: ScreenSize
members: Record<string, MemberData>
implicit_hosting: boolean
cursor_image: CursorImage | null
}
export interface SystemAdmin {
@ -159,26 +158,6 @@ export interface KeyboardMap {
variant: string
}
/////////////////////////////
// Cursor
/////////////////////////////
export interface CursorImage {
event: string | undefined
uri: string
width: number
height: number
x: number
y: number
}
export interface CursorPosition {
event: string | undefined
member_id: string
x: number
y: number
}
/////////////////////////////
// Broadcast
/////////////////////////////

View File

@ -49,7 +49,6 @@ export interface Video {
/////////////////////////////
export interface Control {
scroll: Scroll
cursor: Cursor
clipboard: Clipboard | null
host_id: string | null
implicit_hosting: boolean
@ -60,24 +59,6 @@ export interface Scroll {
sensitivity: number
}
export interface Cursor {
image: CursorImage | null
position: CursorPosition | null
}
export interface CursorImage {
uri: string
width: number
height: number
x: number
y: number
}
export interface CursorPosition {
x: number
y: number
}
export interface Clipboard {
text: string
}