diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-10-12 00:06:53 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-10-12 00:06:53 +0800 |
| commit | 073a1e3e5af78fb0d220169009fd6a0939b432d2 (patch) | |
| tree | 3e47dfa6539b1260d50d5b7487d8a9ff93780331 /include | |
| parent | 3d7fde8886f906274ff1b0f3bea1aeef0e59f73e (diff) | |
| download | cru-073a1e3e5af78fb0d220169009fd6a0939b432d2.tar.gz cru-073a1e3e5af78fb0d220169009fd6a0939b432d2.tar.bz2 cru-073a1e3e5af78fb0d220169009fd6a0939b432d2.zip | |
Extract ConvertModifiersOfEvent.
Diffstat (limited to 'include')
| -rw-r--r-- | include/cru/platform/gui/xcb/Keyboard.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cru/platform/gui/xcb/Keyboard.h b/include/cru/platform/gui/xcb/Keyboard.h index e1fc7fec..adff95c1 100644 --- a/include/cru/platform/gui/xcb/Keyboard.h +++ b/include/cru/platform/gui/xcb/Keyboard.h @@ -18,6 +18,12 @@ std::unordered_map<KeyCode, bool> GetKeyboardState( XcbUiApplication* application); KeyModifier GetCurrentKeyModifiers(XcbUiApplication* application); +/** + * Used to convert state field of xcb_button_press_event_t, + * xcb_button_release_event_t, xcb_key_press_event_t, xcb_key_release_event_t. + */ +KeyModifier ConvertModifiersOfEvent(uint32_t mask); + class XcbKeyboardManager { public: explicit XcbKeyboardManager(XcbUiApplication* application); |
