Changeset View
Changeset View
Standalone View
Standalone View
keyboard_input.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 55 | public: | |||
---|---|---|---|---|---|
60 | void installKeymap(int fd, uint32_t size); | 60 | void installKeymap(int fd, uint32_t size); | ||
61 | void updateModifiers(uint32_t modsDepressed, uint32_t modsLatched, uint32_t modsLocked, uint32_t group); | 61 | void updateModifiers(uint32_t modsDepressed, uint32_t modsLatched, uint32_t modsLocked, uint32_t group); | ||
62 | void updateKey(uint32_t key, InputRedirection::KeyboardKeyState state); | 62 | void updateKey(uint32_t key, InputRedirection::KeyboardKeyState state); | ||
63 | xkb_keysym_t toKeysym(uint32_t key); | 63 | xkb_keysym_t toKeysym(uint32_t key); | ||
64 | xkb_keysym_t currentKeysym() const { | 64 | xkb_keysym_t currentKeysym() const { | ||
65 | return m_keysym; | 65 | return m_keysym; | ||
66 | } | 66 | } | ||
67 | QString toString(xkb_keysym_t keysym); | 67 | QString toString(xkb_keysym_t keysym); | ||
68 | Qt::Key toQtKey(xkb_keysym_t keysym); | 68 | Qt::Key toQtKey(xkb_keysym_t keysym) const; | ||
69 | Qt::KeyboardModifiers modifiers() const; | 69 | Qt::KeyboardModifiers modifiers() const; | ||
70 | Qt::KeyboardModifiers modifiersRelevantForGlobalShortcuts() const; | 70 | Qt::KeyboardModifiers modifiersRelevantForGlobalShortcuts() const; | ||
71 | bool shouldKeyRepeat(quint32 key) const; | 71 | bool shouldKeyRepeat(quint32 key) const; | ||
72 | 72 | | |||
73 | void switchToNextLayout(); | 73 | void switchToNextLayout(); | ||
74 | 74 | | |||
75 | enum class LED { | 75 | enum class LED { | ||
76 | NumLock = 1 << 0, | 76 | NumLock = 1 << 0, | ||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |