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
4464bcca
Commit
4464bcca
authored
Jun 26, 2011
by
CeRiAl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for problems with buggy hardware keyboard drivers like on HTC Touch Pro
parent
a21c430b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
SDL_dibevents.c
src/video/windib/SDL_dibevents.c
+32
-0
No files found.
src/video/windib/SDL_dibevents.c
View file @
4464bcca
...
...
@@ -106,6 +106,33 @@ LONG
static
int
dropnextvklwinup
=
0
;
switch
(
msg
)
{
#ifdef _WIN32_WCE
// This is necessary because of buggy keybaord driver implementations
// like on the HTC Touch Pro (Raphael)
case
WM_CHAR
:
{
SDL_keysym
keysym
;
/* Set the keysym information */
keysym
.
scancode
=
(
unsigned
char
)
wParam
;
keysym
.
sym
=
(
UINT
)
wParam
;
keysym
.
mod
=
KMOD_NONE
;
keysym
.
unicode
=
0
;
if
(
SDL_TranslateUNICODE
)
{
/* Someday use ToUnicode() */
/* Uh oh, better hope the vkey is close enough.. */
keysym
.
unicode
=
(
UINT
)
wParam
;
}
if
(
keysym
.
sym
!=
SDLK_UNKNOWN
)
{
// drop keys w/ 0 keycode
posted
=
SDL_PrivateKeyboard
(
SDL_PRESSED
,
&
keysym
);
posted
=
SDL_PrivateKeyboard
(
SDL_RELEASED
,
&
keysym
);
#ifdef WMMSG_DEBUG
}
else
{
debugLog
(
"NSDL: DROPPING SDLK_UNKNOWN DOWN"
);
#endif
}
}
return
(
0
);
#endif
//case WM_SYSKEYDOWN:
case
WM_KEYDOWN
:
{
SDL_keysym
keysym
;
...
...
@@ -272,6 +299,11 @@ void DIB_PumpEvents(_THIS)
while
(
PeekMessage
(
&
msg
,
NULL
,
0
,
0
,
PM_NOREMOVE
)
)
{
if
(
GetMessage
(
&
msg
,
NULL
,
0
,
0
)
>
0
)
{
#ifdef _WIN32_WCE
// Needed because of buggy hardware keyboard drivers implementation
// on devices like HTC Touch Pro (Raphael)
TranslateMessage
(
&
msg
);
#endif
DispatchMessage
(
&
msg
);
}
}
...
...
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