update keyboard WS.

This commit is contained in:
Miroslav Šedivý
2020-11-30 17:45:53 +01:00
parent e93d167be6
commit 83be51ea0f
5 changed files with 65 additions and 64 deletions

View File

@ -99,15 +99,13 @@ type ClipboardData struct {
}
// Keyboard
// TODO: New.
type KeyboardModifiers struct {
Event string `json:"event,omitempty"`
CapsLock bool `json:"caps_lock"`
NumLock bool `json:"num_lock"`
ScrollLock bool `json:"scroll_lock"`
CapsLock *bool `json:"caps_lock"`
NumLock *bool `json:"num_lock"`
ScrollLock *bool `json:"scroll_lock"`
}
// TODO: New.
type KeyboardLayout struct {
Event string `json:"event,omitempty"`
Layout string `json:"layout"`
@ -152,15 +150,6 @@ type MemberDisconnected struct {
ID string `json:"id"`
}
// TODO: Remove.
type Keyboard struct {
Event string `json:"event"`
Layout *string `json:"layout,omitempty"`
CapsLock *bool `json:"capsLock,omitempty"`
NumLock *bool `json:"numLock,omitempty"`
ScrollLock *bool `json:"scrollLock,omitempty"`
}
// TODO: Remove.
type Control struct {
Event string `json:"event"`