keyboard

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2020 License: MIT Imports: 2 Imported by: 8

Documentation

Overview

Package keyboard provides low level hook for keyboard input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(fn HookHandler, c chan<- types.KeyboardEvent) error

Install causes package signal to relay incoming keyboard events to c.

func Uninstall

func Uninstall() error

Uninstall remove keyboard hook.

Types

type HookHandler

type HookHandler func(c chan<- types.KeyboardEvent) types.HOOKPROC

HookHandler is a callback function which processes the incoming low level events.

Note: You don't have to care about this function unless customize the default behavior.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL