Deskflow
1.26.0.418
Keyboard and mouse sharing utility
Toggle main menu visibility
Loading...
Searching...
No Matches
XDGKeyUtil.h
Go to the documentation of this file.
1
/*
2
* Deskflow -- mouse and keyboard sharing utility
3
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4
* SPDX-FileCopyrightText: (C) 2012 - 2016 Synergy App Ltd
5
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
6
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7
*/
8
9
#pragma once
10
11
#include <array>
12
#include <cstdint>
13
#include <map>
14
15
using
KeySym
=
unsigned
long
;
16
using
KeySymMap
= std::map<KeySym, uint32_t>;
17
19
class
XDGKeyUtil
20
{
21
22
public
:
24
28
static
uint32_t
mapKeySymToKeyID
(
KeySym
);
29
31
35
static
uint32_t
getModifierBitForKeySym
(
KeySym
keysym);
36
37
private
:
38
static
const
KeySymMap
s_keySymToUCS4;
39
// map "Internet" keys to KeyIDs
40
static
const
std::array<KeySym, 256> s_map1008FF;
41
};
long
static long
Definition
ArchNetworkWinsock.cpp:55
KeySym
unsigned long KeySym
Definition
XDGKeyUtil.h:15
KeySymMap
std::map< KeySym, uint32_t > KeySymMap
Definition
XDGKeyUtil.h:16
XDGKeyUtil
XKB utility functions.
Definition
XDGKeyUtil.h:20
XDGKeyUtil::getModifierBitForKeySym
static uint32_t getModifierBitForKeySym(KeySym keysym)
Convert KeySym to corresponding KeyModifierMask.
Definition
XDGKeyUtil.cpp:105
XDGKeyUtil::mapKeySymToKeyID
static uint32_t mapKeySymToKeyID(KeySym)
Convert KeySym to KeyID.
Definition
XDGKeyUtil.cpp:15
src
lib
platform
XDGKeyUtil.h
Generated by
1.18.0