mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
desktop control websocket.
This commit is contained in:
@ -29,10 +29,17 @@ const (
|
||||
CONTROL_HOST = "control/host"
|
||||
CONTROL_RELEASE = "control/release"
|
||||
CONTROL_REQUEST = "control/request"
|
||||
CONTROL_MOVE = "control/move" // TODO: New. (fallback)
|
||||
CONTROL_SCROLL = "control/scroll" // TODO: New. (fallback)
|
||||
CONTROL_KEYDOWN = "control/keydown" // TODO: New. (fallback)
|
||||
CONTROL_KEYUP = "control/keyup" // TODO: New. (fallback)
|
||||
// mouse
|
||||
CONTROL_MOVE = "control/move" // TODO: New. (fallback)
|
||||
CONTROL_SCROLL = "control/scroll" // TODO: New. (fallback)
|
||||
// keyboard
|
||||
CONTROL_KEYPRESS = "control/keypress"
|
||||
CONTROL_KEYDOWN = "control/keydown"
|
||||
CONTROL_KEYUP = "control/keyup"
|
||||
// actions
|
||||
CONTROL_COPY = "control/copy"
|
||||
CONTROL_PASTE = "control/paste"
|
||||
CONTROL_SELECT_ALL = "control/select_all"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -114,9 +114,8 @@ type ControlScroll struct {
|
||||
Y int16 `json:"y"`
|
||||
}
|
||||
|
||||
// TODO: New.
|
||||
type ControlKey struct {
|
||||
Key uint32 `json:"key"`
|
||||
Keysym uint32 `json:"keysym"`
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
|
Reference in New Issue
Block a user