Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
XDGKeyUtil Class Reference

XKB utility functions. More...

#include <XDGKeyUtil.h>

Static Public Member Functions

static uint32_t mapKeySymToKeyID (KeySym)
 Convert KeySym to KeyID.
static uint32_t getModifierBitForKeySym (KeySym keysym)
 Convert KeySym to corresponding KeyModifierMask.

Detailed Description

XKB utility functions.

Member Function Documentation

◆ getModifierBitForKeySym()

uint32_t XDGKeyUtil::getModifierBitForKeySym ( KeySym keysym)
static

Convert KeySym to corresponding KeyModifierMask.

Converts a KeySym to the corresponding KeyModifierMask, or 0 if the KeySym is not a modifier.

◆ mapKeySymToKeyID()

KeyID XDGKeyUtil::mapKeySymToKeyID ( KeySym k)
static

Convert KeySym to KeyID.

Converts a KeySym to the equivalent KeyID. Returns kKeyNone if the KeySym cannot be mapped.


The documentation for this class was generated from the following files: