Popularity
2.4
Stable
Activity
0.0
Stable
39
1
5

Programming language: Go
Tags: Miscellaneous    

xkg alternatives and similar packages

Based on the "Miscellaneous" category

Do you think we are missing an alternative of xkg or a related project?

Add another 'Miscellaneous' Package

README

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


*Note that all licence references and agreements mentioned in the xkg README section above are relevant to that project's source code only.