diff options
Diffstat (limited to 'apps/action.c')
-rw-r--r-- | apps/action.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/action.c b/apps/action.c index c2a6e47ebe..d98bf13cf3 100644 --- a/apps/action.c +++ b/apps/action.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "config.h" | 25 | #include "config.h" |
26 | #include "lang.h" | 26 | #include "lang.h" |
27 | 27 | ||
28 | #include "appevents.h" | ||
28 | #include "button.h" | 29 | #include "button.h" |
29 | #include "action.h" | 30 | #include "action.h" |
30 | #include "kernel.h" | 31 | #include "kernel.h" |
@@ -104,10 +105,6 @@ static inline int get_next_context(const struct button_mapping *items, int i) | |||
104 | Timeout can be TIMEOUT_NOBLOCK to return immediatly | 105 | Timeout can be TIMEOUT_NOBLOCK to return immediatly |
105 | TIMEOUT_BLOCK to wait for a button press | 106 | TIMEOUT_BLOCK to wait for a button press |
106 | Any number >0 to wait that many ticks for a press | 107 | Any number >0 to wait that many ticks for a press |
107 | |||
108 | This function will likely return SYS_FOURHERTZ which should be passed to the | ||
109 | default_event_handler(). If this doesnt happen parts of the GUI may not be | ||
110 | redrawn correctly | ||
111 | */ | 108 | */ |
112 | static int get_action_worker(int context, int timeout, | 109 | static int get_action_worker(int context, int timeout, |
113 | const struct button_mapping* (*get_context_map)(int) ) | 110 | const struct button_mapping* (*get_context_map)(int) ) |
@@ -117,6 +114,9 @@ static int get_action_worker(int context, int timeout, | |||
117 | int i=0; | 114 | int i=0; |
118 | int ret = ACTION_UNKNOWN; | 115 | int ret = ACTION_UNKNOWN; |
119 | static int last_context = CONTEXT_STD; | 116 | static int last_context = CONTEXT_STD; |
117 | |||
118 | |||
119 | send_event(GUI_EVENT_ACTIONUPDATE, NULL); | ||
120 | 120 | ||
121 | if (timeout == TIMEOUT_NOBLOCK) | 121 | if (timeout == TIMEOUT_NOBLOCK) |
122 | button = button_get(false); | 122 | button = button_get(false); |