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 e3953a0..a359098 100644
--- a/uisimulator/x11/button-x11.c
+++ b/uisimulator/x11/button-x11.c
@@ -21,6 +21,9 @@
#include "X11/keysym.h"
+static int release_mask;
+static int repeat_mask;
+
/*
*Initialize buttons
*/
@@ -28,6 +31,20 @@ void button_init()
{
}
+int button_set_repeat(int newmask)
+{
+ int oldmask = repeat_mask;
+ repeat_mask = newmask;
+ return oldmask;
+}
+
+int button_set_release(int newmask)
+{
+ int oldmask = release_mask;
+ release_mask = newmask;
+ return oldmask;
+}
+
/*
* Translate X keys to Recorder keys
*