go-linuxkeyboard

module
v0.0.0-...-7e03833 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2021 License: MIT

README

LinuxKeyboard

About

This is alpha quality. It's probably not usable for consumption, but might be helpful.

This is a pure Go library that can be used to send/recieve data from a keyboard device in Linux. Besides being able to read/write raw key events, it has some additional helper functions for translating these raw key events into the character to be displayed.

It uses a /dev/input/eventX character special device representing a keyboard directly. No libevdev or other dependancies.

Limitations

  • To use this library, your program will need to run with root privileges. This is a requirement of accessing /dev/input/eventX devices.

References

Directories

Path Synopsis
examples
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL