summaryrefslogtreecommitdiff
path: root/apps/action.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/action.c')
-rw-r--r--apps/action.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/action.c b/apps/action.c
index cd76faafec..8f427c8d68 100644
--- a/apps/action.c
+++ b/apps/action.c
@@ -38,6 +38,9 @@
38#include "language.h" 38#include "language.h"
39#endif 39#endif
40#include "viewport.h" 40#include "viewport.h"
41#ifdef HAVE_TOUCHSCREEN
42#include "statusbar-skinned.h"
43#endif
41 44
42static int last_button = BUTTON_NONE|BUTTON_REL; /* allow the ipod wheel to 45static int last_button = BUTTON_NONE|BUTTON_REL; /* allow the ipod wheel to
43 work on startup */ 46 work on startup */
@@ -320,7 +323,12 @@ static int get_action_worker(int context, int timeout,
320 323
321int get_action(int context, int timeout) 324int get_action(int context, int timeout)
322{ 325{
323 return get_action_worker(context,timeout,NULL); 326 int button = get_action_worker(context,timeout,NULL);
327#ifdef HAVE_TOUCHSCREEN
328 if (button == ACTION_TOUCHSCREEN)
329 button = sb_touch_to_button(context);
330#endif
331 return button;
324} 332}
325 333
326int get_custom_action(int context,int timeout, 334int get_custom_action(int context,int timeout,