https://github.com/go-xkg/xkg
User level X Keyboard Grabber
https://github.com/go-xkg/xkg
Last synced: 9 months ago
JSON representation
User level X Keyboard Grabber
- Host: GitHub
- URL: https://github.com/go-xkg/xkg
- Owner: go-xkg
- License: mit
- Created: 2015-01-05T01:04:43.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-08T04:01:03.000Z (almost 11 years ago)
- Last Synced: 2024-10-25T05:24:10.130Z (about 1 year ago)
- Language: Go
- Homepage: https://godoc.org/github.com/go-xkg/xkg
- Size: 344 KB
- Stars: 56
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-go - :octocat: xkg - X Keyboard Grabber :star: 12 :fork_and_knife: 0 (Miscellaneous / Advanced Console UIs)
- awesome-go - xkg - | - | - | (Miscellaneous / Strings)
- awesome-go - xkg - User level X Keyboard Grabber - ★ 36 (Miscellaneous)
- awesome-go-plus - xkg - X Keyboard Grabber.  (Miscellaneous / Uncategorized)
- awesome-go-cn - xkg
- fucking-awesome-go - xkg - X Keyboard Grabber. (Miscellaneous / Uncategorized)
- awesome-go-zh - xkg
- awesome-go - xkg - X Keyboard Grabber. (Miscellaneous / Uncategorized)
- awesome-go-extra - xkg - 01-05T01:04:43Z|2015-01-08T04:01:03Z| (Microsoft Office / Uncategorized)
- awesome-go - xkg - X Keyboard Grabber. (<span id="其他-miscellaneous">其他 Miscellaneous</span> / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go-cn - xkg - xkg/xkg) [![godoc][D]](https://godoc.org/github.com/go-xkg/xkg) (杂项 / 未分类的)
- awesome-go - xkg - X Keyboard Grabber. (Miscellaneous / Uncategorized)
- awesome-go-cn - xkg
- awesome-go - xkg - X Keyboard Grabber. (Miscellaneous / Uncategorized)
- awesome-Char - xkg - X Keyboard Grabber. (Miscellaneous / Uncategorized)
- zero-alloc-awesome-go - xkg - X Keyboard Grabber. (Miscellaneous / Uncategorized)
- awesome-go-cn - xkg - xkg/xkg) [![godoc][D]](https://godoc.org/github.com/go-xkg/xkg) (杂项 / 未分类的)
- awesome-go - xkg - X Keyboard Grabber. (Miscellaneous / Uncategorized)
- awesome-go - xkg - X Keyboard Grabber. - :arrow_down:0 - :star:17 (Miscellaneous / Strings)
- awesome-go - xkg - X Keyboard Grabber. (Miscellaneous / Advanced Console UIs)
- awesome-go-with-stars - xkg - X Keyboard Grabber. (Miscellaneous / Uncategorized)
- awesome-go - xkg - X Keyboard Grabber. (Miscellaneous / Uncategorized)
- awesome-go - xkg - X Keyboard Grabber. (Miscellaneous / Strings)
README
xkg - X Keyboard Grabber
========================
[](https://godoc.org/github.com/go-xkg/xkg)
## Installation
go get gopkg.in/xkg.v0
## Usage example:
```go
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)](https://github.com/henriquemenezes/xkg/blob/master/LICENSE).