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 @@ #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 *