src/video/x11/SDL_x11keyboard.c
changeset 10496 6660aa9120d6
parent 10494 c54de4000f9f
child 10548 aea47b61c640
equal deleted inserted replaced
10495:f732781d7ddc 10496:6660aa9120d6
   337 
   337 
   338     X11_UpdateKeymap(_this);
   338     X11_UpdateKeymap(_this);
   339 
   339 
   340     SDL_SetScancodeName(SDL_SCANCODE_APPLICATION, "Menu");
   340     SDL_SetScancodeName(SDL_SCANCODE_APPLICATION, "Menu");
   341 
   341 
   342 #ifdef SDL_USE_IBUS
   342 #ifdef SDL_USE_IME
   343     SDL_IBus_Init();
   343     SDL_IME_Init();
   344 #endif
   344 #endif
   345 
   345 
   346     return 0;
   346     return 0;
   347 }
   347 }
   348 
   348 
   420         X11_XkbFreeClientMap(data->xkb, 0, True);
   420         X11_XkbFreeClientMap(data->xkb, 0, True);
   421         data->xkb = NULL;
   421         data->xkb = NULL;
   422     }
   422     }
   423 #endif
   423 #endif
   424 
   424 
   425 #ifdef SDL_USE_IBUS
   425 #ifdef SDL_USE_IME
   426     SDL_IBus_Quit();
   426     SDL_IME_Quit();
   427 #endif
   427 #endif
   428 }
   428 }
   429 
   429 
   430 void
   430 void
   431 X11_StartTextInput(_THIS)
   431 X11_StartTextInput(_THIS)
   434 }
   434 }
   435 
   435 
   436 void
   436 void
   437 X11_StopTextInput(_THIS)
   437 X11_StopTextInput(_THIS)
   438 {
   438 {
   439 #ifdef SDL_USE_IBUS
   439 #ifdef SDL_USE_IME
   440     SDL_IBus_Reset();
   440     SDL_IME_Reset();
   441 #endif
   441 #endif
   442 }
   442 }
   443 
   443 
   444 void
   444 void
   445 X11_SetTextInputRect(_THIS, SDL_Rect *rect)
   445 X11_SetTextInputRect(_THIS, SDL_Rect *rect)
   447     if (!rect) {
   447     if (!rect) {
   448         SDL_InvalidParamError("rect");
   448         SDL_InvalidParamError("rect");
   449         return;
   449         return;
   450     }
   450     }
   451        
   451        
   452 #ifdef SDL_USE_IBUS
   452 #ifdef SDL_USE_IME
   453     SDL_IBus_UpdateTextRect(rect);
   453     SDL_IME_UpdateTextRect(rect);
   454 #endif
   454 #endif
   455 }
   455 }
   456 
   456 
   457 #endif /* SDL_VIDEO_DRIVER_X11 */
   457 #endif /* SDL_VIDEO_DRIVER_X11 */
   458 
   458