diff options
-rw-r--r-- | apps/plugin.h | 4 | ||||
-rw-r--r-- | uisimulator/x11/button-x11.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index bfd86cc8c3..bd9cd5a332 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -159,8 +159,8 @@ struct plugin_api { | |||
159 | void (*splash)(int ticks, bool center, const char *fmt, ...); | 159 | void (*splash)(int ticks, bool center, const char *fmt, ...); |
160 | 160 | ||
161 | /* button */ | 161 | /* button */ |
162 | int (*button_get)(bool block); | 162 | long (*button_get)(bool block); |
163 | int (*button_get_w_tmo)(int ticks); | 163 | long (*button_get_w_tmo)(int ticks); |
164 | int (*button_status)(void); | 164 | int (*button_status)(void); |
165 | void (*button_clear_queue)(void); | 165 | void (*button_clear_queue)(void); |
166 | 166 | ||
diff --git a/uisimulator/x11/button-x11.c b/uisimulator/x11/button-x11.c index ba70c8129b..21393215a4 100644 --- a/uisimulator/x11/button-x11.c +++ b/uisimulator/x11/button-x11.c | |||
@@ -187,7 +187,7 @@ static int get_raw_button (void) | |||
187 | /* | 187 | /* |
188 | * Timeout after TICKS unless a key is pressed. | 188 | * Timeout after TICKS unless a key is pressed. |
189 | */ | 189 | */ |
190 | int button_get_w_tmo(int ticks) | 190 | long button_get_w_tmo(int ticks) |
191 | { | 191 | { |
192 | int bits; | 192 | int bits; |
193 | int i=0; | 193 | int i=0; |
@@ -210,7 +210,7 @@ int button_get_w_tmo(int ticks) | |||
210 | * BUTTON_HELD bit is while the button is being held. | 210 | * BUTTON_HELD bit is while the button is being held. |
211 | * BUTTON_REL bit is set when button has been released. | 211 | * BUTTON_REL bit is set when button has been released. |
212 | */ | 212 | */ |
213 | int button_get(bool block) | 213 | long button_get(bool block) |
214 | { | 214 | { |
215 | int bits; | 215 | int bits; |
216 | do { | 216 | do { |