Skip to content
User level X Keyboard Grabber
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ex/stdout [#4] References to go-xkg changed. Jan 8, 2015
.gitignore [#2] Added xkg into .gitignore. Jan 6, 2015
LICENSE
README.md [#4] References to go-xkg changed. Jan 8, 2015
keymap.go
xkg.go [#4] References to go-xkg changed. Jan 8, 2015

README.md

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).

You can’t perform that action at this time.