示例#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)
}