mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-30 09:27:10 +02:00
SetKeyboardModifiers in xorg C
This commit is contained in:
parent
8c8df119ad
commit
0ecf669077
6 changed files with 68 additions and 21 deletions
|
@ -32,6 +32,12 @@ func New(config *config.Remote) *RemoteManager {
|
|||
emmiter: events.New(),
|
||||
config: config,
|
||||
streaming: false,
|
||||
|
||||
keyboardModifierState: {
|
||||
CapsLock: false,
|
||||
NumLock: false,
|
||||
ScrollLock: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -221,4 +227,8 @@ func (manager *RemoteManager) GetScreenSize() *types.ScreenSize {
|
|||
|
||||
func (manager *RemoteManager) SetKeyboard(layout string) {
|
||||
xorg.SetKeyboard(layout)
|
||||
}
|
||||
}
|
||||
|
||||
func (manager *RemoteManager) SetKeyboard(NumLock int, CapsLock int, ScrollLock int) {
|
||||
xorg.SetKeyboardModifiers(NumLock, CapsLock, ScrollLock)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue