Пример #1
0
// presses a key, if not already pressed. does not release
func press(k *gostwriter.K) {
	err := k.Press()
	guard(err)
}
Пример #2
0
// releases a key, if not aready released.
func release(k *gostwriter.K) {
	err := k.Release()
	guard(err)
}
Пример #3
0
// presses and subsequently releases a key
func push(k *gostwriter.K) {
	err := k.Push()
	guard(err)
}