diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-27 19:51:31 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-27 19:51:31 +0000 |
commit | 52f54830da8e064f42e54e4f99bc4b6a9de6f603 (patch) | |
tree | 4268801db500ca9b29f578413500a14a564f29f2 /uisimulator/x11 | |
parent | 5d6817de666da3144d3bf857e745b898d2d4de1f (diff) | |
download | rockbox-52f54830da8e064f42e54e4f99bc4b6a9de6f603.tar.gz rockbox-52f54830da8e064f42e54e4f99bc4b6a9de6f603.zip |
Added set_release() and set_repeat()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1467 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11')
-rw-r--r-- | uisimulator/x11/button-x11.c | 17 |
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 @@ #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 * |