Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
2f1a5c46
Commit
2f1a5c46
authored
Jul 10, 2010
by
dewyatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed StopTextInput to take an SDL_Window parameter.
parent
2beaeb40
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
SDL_keyboard.h
include/SDL_keyboard.h
+1
-1
SDL_compat.c
src/SDL_compat.c
+1
-1
SDL_sysvideo.h
src/video/SDL_sysvideo.h
+1
-1
SDL_video.c
src/video/SDL_video.c
+2
-2
SDL_win32keyboard.c
src/video/win32/SDL_win32keyboard.c
+1
-1
SDL_win32keyboard.h
src/video/win32/SDL_win32keyboard.h
+1
-1
No files found.
include/SDL_keyboard.h
View file @
2f1a5c46
...
...
@@ -147,7 +147,7 @@ extern DECLSPEC void SDLCALL SDL_StartTextInput(SDL_Window *window);
*
* \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.
...
...
src/SDL_compat.c
View file @
2f1a5c46
...
...
@@ -1744,7 +1744,7 @@ SDL_EnableUNICODE(int enable)
break
;
case
0
:
SDL_enabled_UNICODE
=
0
;
SDL_StopTextInput
();
SDL_StopTextInput
(
SDL_VideoWindow
);
break
;
}
return
previous
;
...
...
src/video/SDL_sysvideo.h
View file @
2f1a5c46
...
...
@@ -300,7 +300,7 @@ struct SDL_VideoDevice
/* Text input */
void
(
*
StartTextInput
)
(
_THIS
,
SDL_Window
*
window
);
void
(
*
StopTextInput
)
(
_THIS
);
void
(
*
StopTextInput
)
(
_THIS
,
SDL_Window
*
window
);
void
(
*
SetTextInputRect
)
(
_THIS
,
SDL_Rect
*
rect
);
/* * * */
...
...
src/video/SDL_video.c
View file @
2f1a5c46
...
...
@@ -3395,10 +3395,10 @@ SDL_StartTextInput(SDL_Window *window)
}
void
SDL_StopTextInput
(
void
)
SDL_StopTextInput
(
SDL_Window
*
window
)
{
if
(
_this
&&
_this
->
StopTextInput
)
{
_this
->
StopTextInput
(
_this
);
_this
->
StopTextInput
(
_this
,
window
);
}
SDL_EventState
(
SDL_TEXTINPUT
,
SDL_DISABLE
);
SDL_EventState
(
SDL_TEXTEDITING
,
SDL_DISABLE
);
...
...
src/video/win32/SDL_win32keyboard.c
View file @
2f1a5c46
...
...
@@ -130,7 +130,7 @@ WIN_StartTextInput(_THIS, SDL_Window *window)
}
void
WIN_StopTextInput
(
_THIS
)
WIN_StopTextInput
(
_THIS
,
SDL_Window
*
window
)
{
}
...
...
src/video/win32/SDL_win32keyboard.h
View file @
2f1a5c46
...
...
@@ -32,7 +32,7 @@ extern void WIN_UpdateKeymap(void);
extern
void
WIN_QuitKeyboard
(
_THIS
);
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
);
#endif
/* _SDL_win32keyboard_h */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment