add button events to control WebSocket.

This commit is contained in:
Miroslav Šedivý
2022-07-23 00:22:26 +02:00
parent f4a4e0152e
commit 7d5ec0190a
6 changed files with 57 additions and 2 deletions

View File

@ -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"`
}