kodi
Classes | Public Member Functions | Static Public Member Functions | List of all members
KODI::WINDOWING::WAYLAND::CXkbcommonKeymap Class Reference

Classes

struct  XkbComposeTableDeleter
 
struct  XkbKeymapDeleter
 

Public Member Functions

 CXkbcommonKeymap (std::unique_ptr< xkb_keymap, XkbKeymapDeleter > keymap, std::unique_ptr< xkb_compose_table, XkbComposeTableDeleter > composeTable)
 Construct for known xkb_keymap.
 
xkb_keysym_t KeysymForKeycode (xkb_keycode_t code) const
 Get xkb keysym for keycode - only a single keysym is supported.
 
void UpdateMask (xkb_mod_mask_t depressed, xkb_mod_mask_t latched, xkb_mod_mask_t locked, xkb_mod_mask_t group)
 Updates the currently depressed, latched, locked and group modifiers for a keyboard being tracked. More...
 
xkb_mod_mask_t CurrentModifiers () const
 Gets the currently depressed, latched and locked modifiers for the keyboard.
 
XBMCKey XBMCKeyForKeycode (xkb_keycode_t code) const
 Get XBMCKey for provided keycode.
 
XBMCMod ActiveXBMCModifiers () const
 CurrentModifiers with XBMC flags
 
std::uint32_t UnicodeCodepointForKeycode (xkb_keycode_t code) const
 Get Unicode codepoint/UTF32 code for provided keycode.
 
bool ShouldKeycodeRepeat (xkb_keycode_t code) const
 Check whether a given keycode should have key repeat.
 
bool SupportsKeyComposition () const
 Check if the system supports key composition. More...
 
KeyComposerStatus KeyComposerFeed (xkb_keycode_t code)
 Feed a given keycode to the key composer. More...
 
void KeyComposerFlush ()
 Reset the composer state.
 

Static Public Member Functions

static XBMCKey XBMCKeyForKeysym (xkb_keysym_t sym)
 

Member Function Documentation

◆ KeyComposerFeed()

KeyComposerStatus CXkbcommonKeymap::KeyComposerFeed ( xkb_keycode_t  code)

Feed a given keycode to the key composer.

Parameters
code- the keycode
Returns
the status of the operation (both the state and the equivalent unicode dead key char resulting from the dead key press)

◆ SupportsKeyComposition()

bool CXkbcommonKeymap::SupportsKeyComposition ( ) const

Check if the system supports key composition.

Returns
true if composition is supported, false otherwise

◆ UpdateMask()

void CXkbcommonKeymap::UpdateMask ( xkb_mod_mask_t  depressed,
xkb_mod_mask_t  latched,
xkb_mod_mask_t  locked,
xkb_mod_mask_t  group 
)

Updates the currently depressed, latched, locked and group modifiers for a keyboard being tracked.

This function must be called whenever modifiers change, or the state will be wrong and keysym translation will be off.


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