• Stars
    star
    56
  • Rank 526,151 (Top 11 %)
  • Language
    Go
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

User level X Keyboard Grabber

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