Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marvin Schmidt
xserver
Commits
b59eabd2
Commit
b59eabd2
authored
Dec 08, 2000
by
Keith Packard
Browse files
kdrive: A few iPAQ inspired changes to event management
parent
a25637fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw/kdrive/src/kinput.c
View file @
b59eabd2
...
...
@@ -21,7 +21,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $XFree86: xc/programs/Xserver/hw/kdrive/kinput.c,v 1.
9
2000/10/0
6 22:05:53
keithp Exp $ */
/* $XFree86: xc/programs/Xserver/hw/kdrive/kinput.c,v 1.
10
2000/10/0
8 02:08:39
keithp Exp $ */
#include
"kdrive.h"
#include
"inputstr.h"
...
...
@@ -1069,16 +1069,16 @@ KdReleaseAllKeys (void)
xEvent
xE
;
int
key
;
KdBlockSigio
();
for
(
key
=
0
;
key
<
KD_KEY_COUNT
;
key
++
)
if
(
IsKeyDown
(
key
))
{
xE
.
u
.
keyButtonPointer
.
time
=
GetTimeInMillis
();
xE
.
u
.
u
.
type
=
KeyRelease
;
xE
.
u
.
u
.
detail
=
key
;
KdBlockSigio
();
KdHandleKeyboardEvent
(
&
xE
);
KdUnblockSigio
();
}
KdUnblockSigio
();
}
void
...
...
@@ -1155,15 +1155,20 @@ KdEnqueueKeyboardEvent(unsigned char scan_code,
{
return
;
}
/*
* X delivers press/release even for autorepeat
*/
xE
.
u
.
u
.
type
=
KeyRelease
;
KdHandleKeyboardEvent
(
&
xE
);
xE
.
u
.
u
.
type
=
KeyPress
;
}
#if 0
if (xE.u.u.type == KeyRelease && !IsKeyDown (key_code))
/*
* Check released keys which are already up
*/
else
if
(
!
IsKeyDown
(
key_code
)
&&
xE
.
u
.
u
.
type
==
KeyRelease
)
{
xE.u.u.type = KeyPress;
KdHandleKeyboardEvent (&xE);
xE.u.u.type = KeyRelease;
return
;
}
#endif
KdCheckSpecialKeys
(
&
xE
);
KdHandleKeyboardEvent
(
&
xE
);
}
...
...
Write
Preview
Supports
Markdown
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