mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
cursor image/position from WebRTC.
This commit is contained in:
@ -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'
|
||||
|
@ -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
|
||||
/////////////////////////////
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user