2
2
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:
Miroslav Šedivý
2021-01-10 12:37:32 +01:00
parent 9782b8391d
commit 589628f6ca
3 changed files with 24 additions and 8 deletions
internal
types
websocket

@ -143,6 +143,19 @@ type KeyboardLayout struct {
Layout string `json:"layout"`
}
/////////////////////////////
// Cursor
/////////////////////////////
type CursorImage struct {
Event string `json:"event,omitempty"`
Uri string `json:"uri"`
Width uint16 `json:"width"`
Height uint16 `json:"height"`
X uint16 `json:"x"`
Y uint16 `json:"y"`
}
/////////////////////////////
// Broadcast
/////////////////////////////