Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
62e4d554
Commit
62e4d554
authored
Dec 12, 1999
by
Lionel Ulmer
Committed by
Alexandre Julliard
Dec 12, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed handling of DGA2.0 keyboard events.
parent
5c7f1ab9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
event.c
windows/x11drv/event.c
+23
-4
No files found.
windows/x11drv/event.c
View file @
62e4d554
...
...
@@ -30,6 +30,7 @@
#include "debugtools.h"
#include "drive.h"
#include "heap.h"
#include "input.h"
#include "keyboard.h"
#include "message.h"
#include "mouse.h"
...
...
@@ -270,14 +271,32 @@ static void EVENT_ProcessEvent( XEvent *event )
}
if
((
event
->
type
==
DGAKeyPressEventType
)
||
(
event
->
type
==
DGAKeyReleaseEventType
))
{
/*
Out of laziness, use the helper function to do the conversion :-)
*/
/*
Fill a XKeyEvent to send to EVENT_Key
*/
XKeyEvent
ke
;
XDGAKeyEvent
*
evt
=
(
XDGAKeyEvent
*
)
event
;
TRACE
(
"DGAKeyPress/ReleaseEvent received.
\n
"
);
XDGAKeyEventToXKeyEvent
((
XDGAKeyEvent
*
)
event
,
&
ke
);
EVENT_Key
(
DGAhwnd
,
&
ke
);
if
(
evt
->
type
==
DGAKeyReleaseEventType
)
ke
.
type
=
KeyRelease
;
else
ke
.
type
=
KeyPress
;
ke
.
serial
=
evt
->
serial
;
ke
.
send_event
=
FALSE
;
ke
.
display
=
evt
->
display
;
ke
.
window
=
0
;
ke
.
root
=
0
;
ke
.
subwindow
=
0
;
ke
.
time
=
evt
->
time
;
ke
.
x
=
PosX
;
ke
.
y
=
PosY
;
ke
.
x_root
=
-
1
;
ke
.
y_root
=
-
1
;
ke
.
state
=
evt
->
state
;
ke
.
keycode
=
evt
->
keycode
;
ke
.
same_screen
=
TRUE
;
X11DRV_KEYBOARD_HandleEvent
(
NULL
,
&
ke
);
return
;
}
}
...
...
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