diff options
Diffstat (limited to 'uisimulator/win32/button.c')
-rw-r--r-- | uisimulator/win32/button.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/uisimulator/win32/button.c b/uisimulator/win32/button.c index da193814e5..700ea14c8d 100644 --- a/uisimulator/win32/button.c +++ b/uisimulator/win32/button.c | |||
@@ -27,12 +27,29 @@ | |||
27 | #define KEY(k) (HIBYTE(GetKeyState (k)) & 1) | 27 | #define KEY(k) (HIBYTE(GetKeyState (k)) & 1) |
28 | 28 | ||
29 | int last_key ; | 29 | int last_key ; |
30 | static int release_mask; | ||
31 | static int repeat_mask; | ||
32 | |||
30 | 33 | ||
31 | void button_init(void) | 34 | void button_init(void) |
32 | { | 35 | { |
33 | last_key = 0 ; | 36 | last_key = 0 ; |
34 | } | 37 | } |
35 | 38 | ||
39 | int button_set_repeat(int newmask) | ||
40 | { | ||
41 | int oldmask = repeat_mask; | ||
42 | repeat_mask = newmask; | ||
43 | return oldmask; | ||
44 | } | ||
45 | |||
46 | int button_set_release(int newmask) | ||
47 | { | ||
48 | int oldmask = release_mask; | ||
49 | release_mask = newmask; | ||
50 | return oldmask; | ||
51 | } | ||
52 | |||
36 | int button_get(bool block) | 53 | int button_get(bool block) |
37 | { | 54 | { |
38 | int func_call = current_tick; | 55 | int func_call = current_tick; |