8000 GitHub - go-xkg/xkg: User level X Keyboard Grabber
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

go-xkg/xkg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xkg - X Keyboard Grabber

GoDoc

Installation

go get gopkg.in/xkg.v0

Usage example:

package main

import (
	"fmt"
	"gopkg.in/xkg.v0"
)

func main() {
	var keys = make(chan int, 100)

	go xkg.StartXGrabber(keys)

	for {
		keycode := <-keys

		if key, ok := xkg.KeyMap[keycode]; ok {
			fmt.Printf("[%s]", key)
		}
	}
}

License

The license of the project is The MIT License (MIT).

About

User level X Keyboard Grabber

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0