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 | |
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
-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 @@ | |||
21 | 21 | ||
22 | #include "X11/keysym.h" | 22 | #include "X11/keysym.h" |
23 | 23 | ||
24 | static int release_mask; | ||
25 | static 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 | ||
34 | int button_set_repeat(int newmask) | ||
35 | { | ||
36 | int oldmask = repeat_mask; | ||
37 | repeat_mask = newmask; | ||
38 | return oldmask; | ||
39 | } | ||
40 | |||
41 | int 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 | * |