Documentation ¶
Overview ¶
keylogger
keymapper
model
Index ¶
Constants ¶
View Source
const ( INPUTS = "/sys/class/input/event%d/device/uevent" DEVICE_FILE = "/dev/input/event%d" MAX_FILES = 255 MAX_NAME_SIZE = 256 )
View Source
const ( EV_SYN = 0x00 EV_KEY = 0x01 EV_REL = 0x02 EV_ABS = 0x03 EV_MSC = 0x04 EV_SW = 0x05 EV_LED = 0x11 EV_SND = 0x12 EV_REP = 0x14 EV_FF = 0x15 EV_PWR = 0x16 EV_FF_STATUS = 0x17 EV_MAX = 0x1f )
event types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputDevice ¶
func NewDevices ¶
func NewDevices() ([]*InputDevice, error)
type InputEvent ¶
func (*InputEvent) KeyString ¶
func (t *InputEvent) KeyString() string
type KeyLogger ¶
type KeyLogger struct { Dev *InputDevice // contains filtered or unexported fields }
func NewKeyLogger ¶
func NewKeyLogger(dev *InputDevice) *KeyLogger
func (*KeyLogger) Read ¶
func (t *KeyLogger) Read() (<-chan InputEvent, error)
Click to show internal directories.
Click to hide internal directories.