mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
broadcast cursor position via WebSockets.
This commit is contained in:
@ -48,6 +48,7 @@ type DesktopManager interface {
|
||||
|
||||
// xorg
|
||||
Move(x, y int)
|
||||
GetMousePositon() (x, y int)
|
||||
Scroll(x, y int)
|
||||
ButtonDown(code int) error
|
||||
KeyDown(code uint64) error
|
||||
|
@ -47,7 +47,8 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
CURSOR_IMAGE = "cursor/image"
|
||||
CURSOR_IMAGE = "cursor/image"
|
||||
CURSOR_POSITION = "cursor/position"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -172,6 +172,13 @@ type CursorImage struct {
|
||||
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