Documentation ¶
Overview ¶
Copyright 2014, Raphael Estrada Author email: <galaktor@gmx.de> Project home: <https://github.com/galaktor/gostwriter> Licensed under The GPL v3 License (see README and LICENSE files)
Copyright 2014, Raphael Estrada Author email: <galaktor@gmx.de> Project home: <https://github.com/galaktor/gostwriter> Licensed under The GPL v3 License (see README and LICENSE files)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K ¶
type K struct {
// contains filtered or unexported fields
}
represents a key on the virtual keyboard
func (*K) Press ¶
changes the key state into PRESSED if it isn't already. you can repeatedly call this but the state will switch at most once .
func (*K) Push ¶
presses the key then subsequently releases it. for convenience when typical 'typing'-style key presses are desired. for key combinations, you probably should be using Press() and Release() directly.
type Keyboard ¶
type Keyboard struct {
// contains filtered or unexported fields
}
represents the virtual keyboard. holds a reference to a device on /dev/uinput where it's keys will send events to.
func New ¶
constructs and returns a new virtual keyboard. the name provided is used to name the underlying uinput device in the operating system. registers *all* available key codes with uinput for simplicity. only actually creates virtual keys on first request to save some memory.
Directories ¶
Path | Synopsis |
---|---|
Copyright 2014, Raphael Estrada Author email: <galaktor@gmx.de> Project home: <https://github.com/galaktor/gostwriter> Licensed under The GPL v3 License (see README and LICENSE files)
|
Copyright 2014, Raphael Estrada Author email: <galaktor@gmx.de> Project home: <https://github.com/galaktor/gostwriter> Licensed under The GPL v3 License (see README and LICENSE files) |
Copyright 2014, Raphael Estrada Author email: <galaktor@gmx.de> Project home: <https://github.com/galaktor/gostwriter> Licensed under The GPL v3 License (see README and LICENSE files)
|
Copyright 2014, Raphael Estrada Author email: <galaktor@gmx.de> Project home: <https://github.com/galaktor/gostwriter> Licensed under The GPL v3 License (see README and LICENSE files) |
Copyright 2014, Raphael Estrada Author email: <galaktor@gmx.de> Project home: <https://github.com/galaktor/gostwriter> Licensed under The GPL v3 License (see README and LICENSE files)
|
Copyright 2014, Raphael Estrada Author email: <galaktor@gmx.de> Project home: <https://github.com/galaktor/gostwriter> Licensed under The GPL v3 License (see README and LICENSE files) |