Changed StopTextInput to take an SDL_Window parameter.
This commit is contained in:
parent
2beaeb4080
commit
2f1a5c4653
6 changed files with 7 additions and 7 deletions
|
@ -147,7 +147,7 @@ extern DECLSPEC void SDLCALL SDL_StartTextInput(SDL_Window *window);
|
||||||
*
|
*
|
||||||
* \sa SDL_StartTextInput()
|
* \sa SDL_StartTextInput()
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC void SDLCALL SDL_StopTextInput(void);
|
extern DECLSPEC void SDLCALL SDL_StopTextInput(SDL_Window *window);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Set the rectangle used to type Unicode text inputs.
|
* \brief Set the rectangle used to type Unicode text inputs.
|
||||||
|
|
|
@ -1744,7 +1744,7 @@ SDL_EnableUNICODE(int enable)
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
SDL_enabled_UNICODE = 0;
|
SDL_enabled_UNICODE = 0;
|
||||||
SDL_StopTextInput();
|
SDL_StopTextInput(SDL_VideoWindow);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return previous;
|
return previous;
|
||||||
|
|
|
@ -300,7 +300,7 @@ struct SDL_VideoDevice
|
||||||
|
|
||||||
/* Text input */
|
/* Text input */
|
||||||
void (*StartTextInput) (_THIS, SDL_Window *window);
|
void (*StartTextInput) (_THIS, SDL_Window *window);
|
||||||
void (*StopTextInput) (_THIS);
|
void (*StopTextInput) (_THIS, SDL_Window *window);
|
||||||
void (*SetTextInputRect) (_THIS, SDL_Rect *rect);
|
void (*SetTextInputRect) (_THIS, SDL_Rect *rect);
|
||||||
|
|
||||||
/* * * */
|
/* * * */
|
||||||
|
|
|
@ -3395,10 +3395,10 @@ SDL_StartTextInput(SDL_Window *window)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SDL_StopTextInput(void)
|
SDL_StopTextInput(SDL_Window *window)
|
||||||
{
|
{
|
||||||
if (_this && _this->StopTextInput) {
|
if (_this && _this->StopTextInput) {
|
||||||
_this->StopTextInput(_this);
|
_this->StopTextInput(_this, window);
|
||||||
}
|
}
|
||||||
SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE);
|
SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE);
|
||||||
SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE);
|
SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE);
|
||||||
|
|
|
@ -130,7 +130,7 @@ WIN_StartTextInput(_THIS, SDL_Window *window)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
WIN_StopTextInput(_THIS)
|
WIN_StopTextInput(_THIS, SDL_Window *window)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ extern void WIN_UpdateKeymap(void);
|
||||||
extern void WIN_QuitKeyboard(_THIS);
|
extern void WIN_QuitKeyboard(_THIS);
|
||||||
|
|
||||||
extern void WIN_StartTextInput(_THIS, SDL_Window *window);
|
extern void WIN_StartTextInput(_THIS, SDL_Window *window);
|
||||||
extern void WIN_StopTextInput(_THIS);
|
extern void WIN_StopTextInput(_THIS, SDL_Window *window);
|
||||||
extern void WIN_SetTextInputRect(_THIS, SDL_Rect *rect);
|
extern void WIN_SetTextInputRect(_THIS, SDL_Rect *rect);
|
||||||
|
|
||||||
#endif /* _SDL_win32keyboard_h */
|
#endif /* _SDL_win32keyboard_h */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue