src/video/SDL_video.c
changeset 6670 d4883f657288
parent 6662 698c2e533a7e
child 6671 394e25751ef5
equal deleted inserted replaced
6669:c08febc180b9 6670:d4883f657288
   520         _this->CreateWindowFramebuffer = SDL_CreateWindowTexture;
   520         _this->CreateWindowFramebuffer = SDL_CreateWindowTexture;
   521         _this->UpdateWindowFramebuffer = SDL_UpdateWindowTexture;
   521         _this->UpdateWindowFramebuffer = SDL_UpdateWindowTexture;
   522         _this->DestroyWindowFramebuffer = SDL_DestroyWindowTexture;
   522         _this->DestroyWindowFramebuffer = SDL_DestroyWindowTexture;
   523     }
   523     }
   524 
   524 
       
   525     /* If we don't use a screen keyboard, turn on text input by default,
       
   526        otherwise programs that expect to get text events without enabling
       
   527        UNICODE input won't get any events.
       
   528 
       
   529        Actually, come to think of it, you needed to call SDL_EnableUNICODE(1)
       
   530        in SDL 1.2 before you got text input events.  Hmm...
       
   531      */
       
   532     if (!SDL_HasScreenKeyboardSupport()) {
       
   533         SDL_StartTextInput();
       
   534     }
       
   535 
   525     /* We're ready to go! */
   536     /* We're ready to go! */
   526     return 0;
   537     return 0;
   527 }
   538 }
   528 
   539 
   529 const char *
   540 const char *
  2829 SDL_HasScreenKeyboardSupport(void)
  2840 SDL_HasScreenKeyboardSupport(void)
  2830 {
  2841 {
  2831     if (_this && _this->SDL_HasScreenKeyboardSupport) {
  2842     if (_this && _this->SDL_HasScreenKeyboardSupport) {
  2832         return _this->SDL_HasScreenKeyboardSupport(_this);
  2843         return _this->SDL_HasScreenKeyboardSupport(_this);
  2833     }
  2844     }
       
  2845 /* FIXME: The event system queries this before we initialize our video driver */
       
  2846 #if __IPHONEOS__ || __ANDROID__
       
  2847     return SDL_TRUE;
       
  2848 #else
  2834     return SDL_FALSE;
  2849     return SDL_FALSE;
       
  2850 #endif
  2835 }
  2851 }
  2836 
  2852 
  2837 SDL_bool
  2853 SDL_bool
  2838 SDL_IsScreenKeyboardShown(SDL_Window *window)
  2854 SDL_IsScreenKeyboardShown(SDL_Window *window)
  2839 {
  2855 {