Documentation ¶
Index ¶
- Variables
- func KeySymToVirtualKey(sym KeySym) events.VirtualKey
- type KeyCode
- type KeySym
- type LayoutIndex
- type ModMask
- type XcbConnection
- type Xkb
- func (xkb *Xkb) Destroy()
- func (xkb *Xkb) GetOneSym(key KeyCode) C.xkb_keysym_t
- func (xkb *Xkb) GetUtf8(key KeyCode, sym KeySym) string
- func (xkb *Xkb) KeyRepeats(key KeyCode) bool
- func (xkb *Xkb) KeymapFromBuffer(buf []byte) error
- func (xkb *Xkb) ModIsAlt() bool
- func (xkb *Xkb) ModIsCtrl() bool
- func (xkb *Xkb) ModIsLogo() bool
- func (xkb *Xkb) ModIsShift() bool
- func (xkb *Xkb) UpdateKeymap(conn *XcbConnection, deviceID int32) error
- func (xkb *Xkb) UpdateMask(depressed_mods ModMask, latched_mods ModMask, locked_mods ModMask, ...) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( XKB_MOD_NAME_SHIFT = (*C.char)(unsafe.Pointer(&[]byte("Shift\x00")[0])) XKB_MOD_NAME_CTRL = (*C.char)(unsafe.Pointer(&[]byte("Control\x00")[0])) XKB_MOD_NAME_ALT = (*C.char)(unsafe.Pointer(&[]byte("Mod1\x00")[0])) XKB_MOD_NAME_LOGO = (*C.char)(unsafe.Pointer(&[]byte("Mod4\x00")[0])) )
Functions ¶
func KeySymToVirtualKey ¶
func KeySymToVirtualKey(sym KeySym) events.VirtualKey
Types ¶
type KeyCode ¶
type KeyCode = C.xkb_keycode_t
type KeySym ¶
type KeySym = C.xkb_keysym_t
type LayoutIndex ¶
type LayoutIndex = C.xkb_layout_index_t
type ModMask ¶
type ModMask = C.xkb_mod_mask_t
type XcbConnection ¶
type XcbConnection = C.xcb_connection_t
type Xkb ¶
type Xkb struct {
// contains filtered or unexported fields
}
func NewFromXcb ¶
func NewFromXcb(conn *XcbConnection) (xkb *Xkb, deviceId int32, firstEvent uint8, err error)
func (*Xkb) KeyRepeats ¶
func (*Xkb) KeymapFromBuffer ¶
func (*Xkb) ModIsShift ¶
func (*Xkb) UpdateKeymap ¶
func (xkb *Xkb) UpdateKeymap(conn *XcbConnection, deviceID int32) error
func (*Xkb) UpdateMask ¶
func (xkb *Xkb) UpdateMask( depressed_mods ModMask, latched_mods ModMask, locked_mods ModMask, depressed_layout LayoutIndex, latched_layout LayoutIndex, locked_layout LayoutIndex, ) bool
Click to show internal directories.
Click to hide internal directories.