virtual-keyboard: move to new impl

This commit is contained in:
Vaxry 2024-05-03 00:31:48 +01:00
parent a3ca016d42
commit 6aa2d123ae
14 changed files with 370 additions and 67 deletions

View file

@ -10,6 +10,7 @@
#include "Region.hpp"
class CMonitor;
class CVirtualKeyboard;
struct SRenderData {
CMonitor* pMonitor;
@ -71,23 +72,25 @@ struct SKeyboard {
DYNLISTENER(keyboardKeymap);
DYNLISTENER(keyboardDestroy);
bool isVirtual = false;
bool active = false;
bool enabled = true;
bool isVirtual = false;
bool active = false;
bool enabled = true;
xkb_layout_index_t activeLayout = 0;
xkb_state* xkbTranslationState = nullptr;
WP<CVirtualKeyboard> virtKeyboard;
std::string name = "";
std::string xkbFilePath = "";
xkb_layout_index_t activeLayout = 0;
xkb_state* xkbTranslationState = nullptr;
SStringRuleNames currentRules;
int repeatRate = 0;
int repeatDelay = 0;
int numlockOn = -1;
bool resolveBindsBySym = false;
std::string name = "";
std::string xkbFilePath = "";
void updateXKBTranslationState(xkb_keymap* const keymap = nullptr);
SStringRuleNames currentRules;
int repeatRate = 0;
int repeatDelay = 0;
int numlockOn = -1;
bool resolveBindsBySym = false;
void updateXKBTranslationState(xkb_keymap* const keymap = nullptr);
// For the list lookup
bool operator==(const SKeyboard& rhs) const {