cursor image/position from WebRTC.

This commit is contained in:
Miroslav Šedivý
2021-02-13 18:25:40 +01:00
parent 061fbe60cf
commit c9b2c93fb8
7 changed files with 82 additions and 127 deletions

View File

@ -22,7 +22,6 @@ type SystemInit struct {
ScreenSize ScreenSize `json:"screen_size"`
Members map[string]MemberData `json:"members"`
ImplicitHosting bool `json:"implicit_hosting"`
CursorImage *CursorImage `json:"cursor_image"`
}
type SystemAdmin struct {
@ -159,26 +158,6 @@ type KeyboardModifiers struct {
ScrollLock *bool `json:"scroll_lock"`
}
/////////////////////////////
// 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"`
}
type CursorPosition struct {
Event string `json:"event,omitempty"`
MemberId string `json:"member_id"`
X uint16 `json:"x"`
Y uint16 `json:"y"`
}
/////////////////////////////
// Broadcast
/////////////////////////////