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:
@ -48,7 +48,7 @@ type DesktopManager interface {
|
||||
|
||||
// xorg
|
||||
Move(x, y int)
|
||||
GetMousePositon() (x, y int)
|
||||
OnCursorPosition(listener func(x, y int))
|
||||
Scroll(x, y int)
|
||||
ButtonDown(code int) error
|
||||
KeyDown(code uint64) error
|
||||
|
@ -46,11 +46,6 @@ const (
|
||||
KEYBOARD_MAP = "keyboard/map"
|
||||
)
|
||||
|
||||
const (
|
||||
CURSOR_IMAGE = "cursor/image"
|
||||
CURSOR_POSITION = "cursor/position"
|
||||
)
|
||||
|
||||
const (
|
||||
BORADCAST_STATUS = "broadcast/status"
|
||||
)
|
||||
|
@ -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
|
||||
/////////////////////////////
|
||||
|
Reference in New Issue
Block a user