aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/KeyboardX11.h
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer/KeyboardX11.h')
-rw-r--r--vncviewer/KeyboardX11.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/vncviewer/KeyboardX11.h b/vncviewer/KeyboardX11.h
new file mode 100644
index 00000000..ba9a88f9
--- /dev/null
+++ b/vncviewer/KeyboardX11.h
@@ -0,0 +1,42 @@
+/* Copyright 2011-2021 Pierre Ossman <ossman@cendio.se> for Cendio AB
+ *
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this software; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ * USA.
+ */
+
+#ifndef __KEYBOARDX11_H__
+#define __KEYBOARDX11_H__
+
+#include "Keyboard.h"
+
+class KeyboardX11 : public Keyboard
+{
+public:
+ KeyboardX11(KeyboardHandler* handler);
+ virtual ~KeyboardX11();
+
+ bool handleEvent(const void* event) override;
+
+ unsigned getLEDState() override;
+ void setLEDState(unsigned state) override;
+
+protected:
+ unsigned getModifierMask(uint32_t keysym);
+
+private:
+ int code_map_keycode_to_qnum[256];
+};
+
+#endif
ramework.git/tree/server/src/main/java/com/vaadin?id=ab29d417fe1d2571ba9e2c1845b6f287ab61e0a0'>vaadin/data/converter/DateToSqlDateConverter.java
blob: cd62d6004ba26dc27318fca6594df32804bdef47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57