Subversion Repositories eduke32

Rev

Rev 4989 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4989 Rev 5000
Line 103... Line 103...
103
{
103
{
104
    LOGI("PortableAction action = %d, state = %d", action, state);
104
    LOGI("PortableAction action = %d, state = %d", action, state);
105
105
106
    if (action >= MENU_UP && action <= MENU_BACK)
106
    if (action >= MENU_UP && action <= MENU_BACK)
107
    {
107
    {
108
        if (PortableRead(READ_SCREEN_MODE) == TOUCH_SCREEN_MENU)
108
//        if (PortableRead(READ_SCREEN_MODE) == TOUCH_SCREEN_MENU)
109
        {
109
        {
110
            int sdl_code [] = { SDL_SCANCODE_UP, SDL_SCANCODE_DOWN, SDL_SCANCODE_LEFT,
110
            int const sdl_code [] = { SDL_SCANCODE_UP, SDL_SCANCODE_DOWN, SDL_SCANCODE_LEFT,
111
                    SDL_SCANCODE_RIGHT, SDL_SCANCODE_RETURN, SDL_SCANCODE_ESCAPE };
111
                    SDL_SCANCODE_RIGHT, SDL_SCANCODE_RETURN, SDL_SCANCODE_ESCAPE };
112
            PortableKeyEvent(state, sdl_code[action-MENU_UP], 0);
112
            PortableKeyEvent(state, sdl_code[action-MENU_UP], 0);
113
            return;
113
            return;
114
        }
114
        }
115
    }
115
    }