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
2beaeb40
Commit
2beaeb40
authored
Jul 08, 2010
by
dewyatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed StartTextInput to take an SDL_Window parameter.
parent
9807496e
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
10 deletions
+9
-10
SDL_keyboard.h
include/SDL_keyboard.h
+1
-1
SDL_compat.c
src/SDL_compat.c
+1
-1
SDL_keyboard.c
src/events/SDL_keyboard.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
-2
SDL_win32keyboard.h
src/video/win32/SDL_win32keyboard.h
+1
-1
SDL_win32video.c
src/video/win32/SDL_win32video.c
+1
-1
No files found.
include/SDL_keyboard.h
View file @
2beaeb40
...
...
@@ -140,7 +140,7 @@ extern DECLSPEC const char *SDLCALL SDL_GetKeyName(SDLKey key);
* \sa SDL_StopTextInput()
* \sa SDL_SetTextInputRect()
*/
extern
DECLSPEC
void
SDLCALL
SDL_StartTextInput
(
void
);
extern
DECLSPEC
void
SDLCALL
SDL_StartTextInput
(
SDL_Window
*
window
);
/**
* \brief Stop receiving any text input events.
...
...
src/SDL_compat.c
View file @
2beaeb40
...
...
@@ -1740,7 +1740,7 @@ SDL_EnableUNICODE(int enable)
switch
(
enable
)
{
case
1
:
SDL_enabled_UNICODE
=
1
;
SDL_StartTextInput
();
SDL_StartTextInput
(
SDL_VideoWindow
);
break
;
case
0
:
SDL_enabled_UNICODE
=
0
;
...
...
src/events/SDL_keyboard.c
View file @
2beaeb40
...
...
@@ -617,7 +617,7 @@ SDL_SetKeyboardFocus(SDL_Window * window)
0
,
0
);
if
(
SDL_EventState
(
SDL_TEXTINPUT
,
SDL_QUERY
))
{
SDL_StartTextInput
();
SDL_StartTextInput
(
window
);
}
}
}
...
...
src/video/SDL_sysvideo.h
View file @
2beaeb40
...
...
@@ -299,7 +299,7 @@ struct SDL_VideoDevice
void
(
*
SuspendScreenSaver
)
(
_THIS
);
/* Text input */
void
(
*
StartTextInput
)
(
_THIS
);
void
(
*
StartTextInput
)
(
_THIS
,
SDL_Window
*
window
);
void
(
*
StopTextInput
)
(
_THIS
);
void
(
*
SetTextInputRect
)
(
_THIS
,
SDL_Rect
*
rect
);
...
...
src/video/SDL_video.c
View file @
2beaeb40
...
...
@@ -3385,10 +3385,10 @@ SDL_GetWindowWMInfo(SDL_Window * window, struct SDL_SysWMinfo *info)
}
void
SDL_StartTextInput
(
void
)
SDL_StartTextInput
(
SDL_Window
*
window
)
{
if
(
_this
&&
_this
->
StartTextInput
)
{
_this
->
StartTextInput
(
_this
);
_this
->
StartTextInput
(
_this
,
window
);
}
SDL_EventState
(
SDL_TEXTINPUT
,
SDL_ENABLE
);
SDL_EventState
(
SDL_TEXTEDITING
,
SDL_ENABLE
);
...
...
src/video/win32/SDL_win32keyboard.c
View file @
2beaeb40
...
...
@@ -123,9 +123,8 @@ WIN_QuitKeyboard(_THIS)
}
void
WIN_StartTextInput
(
_THIS
)
WIN_StartTextInput
(
_THIS
,
SDL_Window
*
window
)
{
SDL_Window
*
window
=
SDL_GetKeyboardFocus
();
HWND
hwnd
=
((
SDL_WindowData
*
)
window
->
driverdata
)
->
hwnd
;
}
...
...
src/video/win32/SDL_win32keyboard.h
View file @
2beaeb40
...
...
@@ -31,7 +31,7 @@ extern void WIN_InitKeyboard(_THIS);
extern
void
WIN_UpdateKeymap
(
void
);
extern
void
WIN_QuitKeyboard
(
_THIS
);
extern
void
WIN_StartTextInput
(
_THIS
);
extern
void
WIN_StartTextInput
(
_THIS
,
SDL_Window
*
window
);
extern
void
WIN_StopTextInput
(
_THIS
);
extern
void
WIN_SetTextInputRect
(
_THIS
,
SDL_Rect
*
rect
);
...
...
src/video/win32/SDL_win32video.c
View file @
2beaeb40
...
...
@@ -163,7 +163,7 @@ WIN_CreateDevice(int devindex)
device
->
GL_DeleteContext
=
WIN_GL_DeleteContext
;
#endif
device
->
StartTextInput
=
WIN_StartTextInput
;
device
->
StopTextInput
=
WIN_St
art
TextInput
;
device
->
StopTextInput
=
WIN_St
op
TextInput
;
device
->
SetTextInputRect
=
WIN_SetTextInputRect
;
device
->
free
=
WIN_DeleteDevice
;
...
...
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