Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f339b6c0
Commit
f339b6c0
authored
Apr 20, 2011
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Make sure that all relevant keyboard traces are printed in the same debug channel.
parent
a9675b35
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
keyboard.c
dlls/winex11.drv/keyboard.c
+17
-17
No files found.
dlls/winex11.drv/keyboard.c
View file @
f339b6c0
...
...
@@ -1144,7 +1144,7 @@ static void X11DRV_send_keyboard_input( HWND hwnd, WORD vkey, WORD scan, DWORD f
{
INPUT
input
;
TRACE_
(
key
)(
"
vkey=%04x scan=%04x flags=%04x
\n
"
,
vkey
,
scan
,
flags
);
TRACE_
(
key
)(
"
hwnd %p vkey=%04x scan=%04x flags=%04x
\n
"
,
hwnd
,
vkey
,
scan
,
flags
);
input
.
type
=
INPUT_KEYBOARD
;
input
.
u
.
ki
.
wVk
=
vkey
;
...
...
@@ -1295,13 +1295,13 @@ void X11DRV_KeyEvent( HWND hwnd, XEvent *xev )
if
(
xic
&&
event
->
type
==
KeyPress
)
{
ascii_chars
=
XmbLookupString
(
xic
,
event
,
buf
,
sizeof
(
buf
),
&
keysym
,
&
status
);
TRACE
(
"XmbLookupString needs %i byte(s)
\n
"
,
ascii_chars
);
TRACE
_
(
key
)
(
"XmbLookupString needs %i byte(s)
\n
"
,
ascii_chars
);
if
(
status
==
XBufferOverflow
)
{
Str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ascii_chars
);
if
(
Str
==
NULL
)
{
ERR
(
"Failed to allocate memory!
\n
"
);
ERR
_
(
key
)
(
"Failed to allocate memory!
\n
"
);
wine_tsx11_unlock
();
return
;
}
...
...
@@ -2402,16 +2402,16 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState
if
(
scanCode
&
0x8000
)
{
TRACE
(
"Key UP, doing nothing
\n
"
);
TRACE
_
(
key
)
(
"Key UP, doing nothing
\n
"
);
return
0
;
}
if
(
!
match_x11_keyboard_layout
(
hkl
))
FIXME
(
"keyboard layout %p is not supported
\n
"
,
hkl
);
FIXME
_
(
key
)
(
"keyboard layout %p is not supported
\n
"
,
hkl
);
if
((
lpKeyState
[
VK_MENU
]
&
0x80
)
&&
(
lpKeyState
[
VK_CONTROL
]
&
0x80
))
{
TRACE
(
"Ctrl+Alt+[key] won't generate a character
\n
"
);
TRACE
_
(
key
)
(
"Ctrl+Alt+[key] won't generate a character
\n
"
);
return
0
;
}
...
...
@@ -2432,27 +2432,27 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState
if
(
lpKeyState
[
VK_SHIFT
]
&
0x80
)
{
TRACE
(
"ShiftMask = %04x
\n
"
,
ShiftMask
);
TRACE
_
(
key
)
(
"ShiftMask = %04x
\n
"
,
ShiftMask
);
e
.
state
|=
ShiftMask
;
}
if
(
lpKeyState
[
VK_CAPITAL
]
&
0x01
)
{
TRACE
(
"LockMask = %04x
\n
"
,
LockMask
);
TRACE
_
(
key
)
(
"LockMask = %04x
\n
"
,
LockMask
);
e
.
state
|=
LockMask
;
}
if
(
lpKeyState
[
VK_CONTROL
]
&
0x80
)
{
TRACE
(
"ControlMask = %04x
\n
"
,
ControlMask
);
TRACE
_
(
key
)
(
"ControlMask = %04x
\n
"
,
ControlMask
);
e
.
state
|=
ControlMask
;
}
if
(
lpKeyState
[
VK_NUMLOCK
]
&
0x01
)
{
TRACE
(
"NumLockMask = %04x
\n
"
,
NumLockMask
);
TRACE
_
(
key
)
(
"NumLockMask = %04x
\n
"
,
NumLockMask
);
e
.
state
|=
NumLockMask
;
}
/* Restore saved AltGr state */
TRACE
(
"AltGrMask = %04x
\n
"
,
AltGrMask
);
TRACE
_
(
key
)
(
"AltGrMask = %04x
\n
"
,
AltGrMask
);
e
.
state
|=
AltGrMask
;
TRACE_
(
key
)(
"(%04X, %04X) : faked state = 0x%04x
\n
"
,
...
...
@@ -2485,11 +2485,11 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState
if
(
!
e
.
keycode
&&
virtKey
!=
VK_NONAME
)
{
WARN
(
"Unknown virtual key %X !!!
\n
"
,
virtKey
);
WARN
_
(
key
)
(
"Unknown virtual key %X !!!
\n
"
,
virtKey
);
wine_tsx11_unlock
();
return
0
;
}
else
TRACE
(
"Found keycode %u
\n
"
,
e
.
keycode
);
else
TRACE
_
(
key
)
(
"Found keycode %u
\n
"
,
e
.
keycode
);
TRACE_
(
key
)(
"type %d, window %lx, state 0x%04x, keycode %u
\n
"
,
e
.
type
,
e
.
window
,
e
.
state
,
e
.
keycode
);
...
...
@@ -2500,13 +2500,13 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState
if
(
xic
)
{
ret
=
XmbLookupString
(
xic
,
&
e
,
buf
,
sizeof
(
buf
),
&
keysym
,
&
status
);
TRACE
(
"XmbLookupString needs %d byte(s)
\n
"
,
ret
);
TRACE
_
(
key
)
(
"XmbLookupString needs %d byte(s)
\n
"
,
ret
);
if
(
status
==
XBufferOverflow
)
{
lpChar
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ret
);
if
(
lpChar
==
NULL
)
{
ERR
(
"Failed to allocate memory!
\n
"
);
ERR
_
(
key
)
(
"Failed to allocate memory!
\n
"
);
wine_tsx11_unlock
();
return
0
;
}
...
...
@@ -2586,9 +2586,9 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState
ksname
=
"No Name"
;
if
((
keysym
>>
8
)
!=
0xff
)
{
WARN
(
"no char for keysym %04lx (%s) :
\n
"
,
WARN
_
(
key
)
(
"no char for keysym %04lx (%s) :
\n
"
,
keysym
,
ksname
);
WARN
(
"virtKey=%X, scanCode=%X, keycode=%u, state=%X
\n
"
,
WARN
_
(
key
)
(
"virtKey=%X, scanCode=%X, keycode=%u, state=%X
\n
"
,
virtKey
,
scanCode
,
e
.
keycode
,
e
.
state
);
}
}
...
...
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