diff options
Diffstat (limited to 'apps/gui/statusbar-skinned.c')
-rw-r--r-- | apps/gui/statusbar-skinned.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c index 8928378781..e22ab28f13 100644 --- a/apps/gui/statusbar-skinned.c +++ b/apps/gui/statusbar-skinned.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include "debug.h" | 38 | #include "debug.h" |
39 | #include "font.h" | 39 | #include "font.h" |
40 | #include "icon.h" | 40 | #include "icon.h" |
41 | #include "option_select.h" | ||
41 | 42 | ||
42 | 43 | ||
43 | /* currently only one wps_state is needed */ | 44 | /* currently only one wps_state is needed */ |
@@ -359,6 +360,7 @@ void sb_bypass_touchregions(bool enable) | |||
359 | 360 | ||
360 | int sb_touch_to_button(int context) | 361 | int sb_touch_to_button(int context) |
361 | { | 362 | { |
363 | struct touchregion *region; | ||
362 | static int last_context = -1; | 364 | static int last_context = -1; |
363 | int button, offset; | 365 | int button, offset; |
364 | if (bypass_sb_touchregions) | 366 | if (bypass_sb_touchregions) |
@@ -367,7 +369,7 @@ int sb_touch_to_button(int context) | |||
367 | if (last_context != context) | 369 | if (last_context != context) |
368 | skin_disarm_touchregions(&sb_skin_data[SCREEN_MAIN]); | 370 | skin_disarm_touchregions(&sb_skin_data[SCREEN_MAIN]); |
369 | last_context = context; | 371 | last_context = context; |
370 | button = skin_get_touchaction(&sb_skin_data[SCREEN_MAIN], &offset); | 372 | button = skin_get_touchaction(&sb_skin_data[SCREEN_MAIN], &offset, ®ion); |
371 | 373 | ||
372 | switch (button) | 374 | switch (button) |
373 | { | 375 | { |
@@ -377,6 +379,13 @@ int sb_touch_to_button(int context) | |||
377 | case ACTION_WPS_VOLDOWN: | 379 | case ACTION_WPS_VOLDOWN: |
378 | return ACTION_LIST_VOLDOWN; | 380 | return ACTION_LIST_VOLDOWN; |
379 | #endif | 381 | #endif |
382 | case ACTION_SETTINGS_INC: | ||
383 | case ACTION_SETTINGS_DEC: | ||
384 | { | ||
385 | const struct settings_list *setting = region->extradata; | ||
386 | option_select_next_val(setting, button == ACTION_SETTINGS_DEC, true); | ||
387 | } | ||
388 | return ACTION_REDRAW; | ||
380 | /* TODO */ | 389 | /* TODO */ |
381 | } | 390 | } |
382 | return button; | 391 | return button; |