mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
cursor image as WS event.
This commit is contained in:
@ -28,4 +28,6 @@ export const CLIPBOARD_SET = 'clipboard/set'
|
||||
export const KEYBOARD_MODIFIERS = 'keyboard/modifiers'
|
||||
export const KEYBOARD_LAYOUT = 'keyboard/layout'
|
||||
|
||||
export const CURSOR_IMAGE = 'cursor/image'
|
||||
|
||||
export const BORADCAST_STATUS = 'broadcast/status'
|
||||
|
@ -146,6 +146,19 @@ export interface KeyboardLayout {
|
||||
layout: string
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
// Cursor
|
||||
/////////////////////////////
|
||||
|
||||
export interface CursorImage {
|
||||
event: string | undefined
|
||||
uri: string
|
||||
width: number
|
||||
height: number
|
||||
x: number
|
||||
y: number
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
// Broadcast
|
||||
/////////////////////////////
|
||||
|
@ -48,8 +48,10 @@ export interface Scroll {
|
||||
|
||||
export interface Cursor {
|
||||
uri: string
|
||||
hot_x: number
|
||||
hot_y: number
|
||||
width: number
|
||||
height: number
|
||||
x: number
|
||||
y: number
|
||||
}
|
||||
|
||||
export interface Clipboard {
|
||||
|
Reference in New Issue
Block a user