mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
kbd_input(): move sc assignement under #ifdef HAVE_TOUCHSCREEN
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28112 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
37c1192753
commit
c78d55a311
1 changed files with 3 additions and 2 deletions
|
@ -453,7 +453,6 @@ int kbd_input(char* text, int buflen)
|
|||
const int button_screen = 0;
|
||||
#endif
|
||||
struct keyboard_parameters *pm;
|
||||
struct screen *sc;
|
||||
|
||||
state.len_utf8 = utf8length(state.text);
|
||||
|
||||
|
@ -492,10 +491,12 @@ int kbd_input(char* text, int buflen)
|
|||
button_screen = (get_action_statuscode(NULL) & ACTION_REMOTE) ? 1 : 0;
|
||||
#endif
|
||||
pm = ¶m[button_screen];
|
||||
sc = &screens[button_screen];
|
||||
#ifdef HAVE_TOUCHSCREEN
|
||||
if (button == ACTION_TOUCHSCREEN)
|
||||
{
|
||||
struct screen *sc = &screens[button_screen];
|
||||
button = keyboard_touchscreen(pm, sc, &state);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Remap some buttons to allow to move
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue