summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uisimulator/x11/button-x11.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/uisimulator/x11/button-x11.c b/uisimulator/x11/button-x11.c
index e3953a0782..a359098eb5 100644
--- a/uisimulator/x11/button-x11.c
+++ b/uisimulator/x11/button-x11.c
@@ -21,6 +21,9 @@
21 21
22#include "X11/keysym.h" 22#include "X11/keysym.h"
23 23
24static int release_mask;
25static int repeat_mask;
26
24/* 27/*
25 *Initialize buttons 28 *Initialize buttons
26 */ 29 */
@@ -28,6 +31,20 @@ void button_init()
28{ 31{
29} 32}
30 33
34int button_set_repeat(int newmask)
35{
36 int oldmask = repeat_mask;
37 repeat_mask = newmask;
38 return oldmask;
39}
40
41int button_set_release(int newmask)
42{
43 int oldmask = release_mask;
44 release_mask = newmask;
45 return oldmask;
46}
47
31/* 48/*
32 * Translate X keys to Recorder keys 49 * Translate X keys to Recorder keys
33 * 50 *