Skip to content

Commit

Permalink
fix(keyboar): remove unused (experimental) function
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed May 1, 2023
1 parent 0c8b8cb commit f6d0876
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions keyboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,6 @@ func (u *VirtualKeyboardDevice) TypeRune(r rune) {
u.TypeKey(keyCode, isUpperCase)
}

func (u *VirtualKeyboardDevice) sendKeys2(keys ...*key) {
for _, k := range keys {
rv := C.libevdev_uinput_write_event(u.uidev, C.uint(k.keyType), C.uint(k.keyCode), C.int(k.value))
if rv < 0 {
fmt.Printf("failed send key event type: %v code: %v value %v", k.keyType, k.keyCode, k.value)
}
}
}

func (u *VirtualKeyboardDevice) sendKeys(done <-chan struct{}, ev ...<-chan *key) <-chan error {
var wg sync.WaitGroup
out := make(chan error)
Expand Down

0 comments on commit f6d0876

Please sign in to comment.