mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add button events to control WebSocket.
This commit is contained in:
@ -54,6 +54,7 @@ type DesktopManager interface {
|
||||
KeyDown(code uint32) error
|
||||
ButtonUp(code uint32) error
|
||||
KeyUp(code uint32) error
|
||||
ButtonPress(code uint32) error
|
||||
KeyPress(codes ...uint32) error
|
||||
ResetKeys()
|
||||
ScreenConfigurations() map[int]ScreenConfiguration
|
||||
|
@ -32,8 +32,11 @@ const (
|
||||
CONTROL_RELEASE = "control/release"
|
||||
CONTROL_REQUEST = "control/request"
|
||||
// mouse
|
||||
CONTROL_MOVE = "control/move"
|
||||
CONTROL_SCROLL = "control/scroll"
|
||||
CONTROL_MOVE = "control/move"
|
||||
CONTROL_SCROLL = "control/scroll"
|
||||
CONTROL_BUTTONPRESS = "control/buttonpress"
|
||||
CONTROL_BUTTONDOWN = "control/buttondown"
|
||||
CONTROL_BUTTONUP = "control/buttonup"
|
||||
// keyboard
|
||||
CONTROL_KEYPRESS = "control/keypress"
|
||||
CONTROL_KEYDOWN = "control/keydown"
|
||||
|
@ -106,6 +106,10 @@ type ControlPos struct {
|
||||
Y int `json:"y"`
|
||||
}
|
||||
|
||||
type ControlButton struct {
|
||||
Code uint32 `json:"code"`
|
||||
}
|
||||
|
||||
type ControlKey struct {
|
||||
Keysym uint32 `json:"keysym"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user