xlib

package
v0.0.0-...-99e368e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Evdev = map[string]int{}/* 158 elements not displayed */

Evdev maps evdev name to keycode

View Source
var KeySyms = map[string]string{}/* 2004 elements not displayed */

KeySyms = /usr/include/X11/keysymdef.h

Functions

func CanUse

func CanUse() bool

CanUse returns a bool if the X11 display is found

func Generate

func Generate()

Generate generates keysyms.go, only used for making

func GetModifiers

func GetModifiers() map[string][]string

GetModifiers grabs the name of the keys that corresponds the each modifier

func KeyCodeToHex

func KeyCodeToHex(code int) string

KeyCodeToHex returns the matching hexadecimal number. Used to lookup keysyms as they are written in /usr/include/X11/keysymdef.h

func KeyCodeToInt

func KeyCodeToInt(code int) int

KeyCodeToInt returns the integer representation of the keycode

func ToHex

func ToHex(val int) string

ToHex converts int to hexadecimal with max two 0 padding

Types

This section is empty.

Jump to

Keyboard shortcuts

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