sdl/runner.c
/** Called when keyboard or gamepad settings changed */
Called when keyboard or gamepad settings changed
Called when keyboard or gamepad settings changed
void controlsDidChange(void *context, struct ControlsInfo controlsInfo)
{
    if (   controlsInfo.keyboardMode == KeyboardModeOn
        || (controlsInfo.keyboardMode == KeyboardModeOptional && !SDL_HasScreenKeyboardSupport()) )
    {
        if (!SDL_IsTextInputActive())
        {
            SDL_StartTextInput();
        }
    }
    else if (SDL_IsTextInputActive())
    {
        SDL_StopTextInput();
    }
    setMouseEnabled(controlsInfo.isTouchEnabled);
}
void controlsDidChange ( void * context , struct ControlsInfo controlsInfo ) { if ( controlsInfo . keyboardMode == KeyboardModeOn || ( controlsInfo . keyboardMode == KeyboardModeOptional && ! SDL_HasScreenKeyboardSupport ( ) ) ) { if ( ! SDL_IsTextInputActive ( ) ) { SDL_StartTextInput ( ) ; } } else if ( SDL_IsTextInputActive ( ) ) { SDL_StopTextInput ( ) ; } setMouseEnabled ( controlsInfo . isTouchEnabled ) ; }
Called when keyboard or gamepad settings changed
Called when keyboard or gamepad settings changed